snipt

Ctrl+h for KB shortcuts

CSS

LightBox 2 en Foundation

1
2
3
.lb-image{
	max-width:inherit;
}
https://snipt.net/embed/702f5f77c5ff8b8b185e18ef801b5734/
/raw/702f5f77c5ff8b8b185e18ef801b5734/
702f5f77c5ff8b8b185e18ef801b5734
css
CSS
3
2019-07-19T01:12:43
True
False
False
Feb 25, 2014 at 03:53 AM
/api/public/snipt/116539/
lightbox-2-en-foundation
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nc">.lb-image</span><span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">max-width</span><span class="o">:</span><span class="nb">inherit</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, foundation, hack-css, lightbox2, trick

JavaScript

Detect animation end jQuery/CSS

1
2
3
4
5
el.one('webkitAnimationEnd oanimationend msAnimationEnd animationend',   
function(e) {
    // code to execute after animation ends    
    myBox.removeClass('change-size');
});
https://snipt.net/embed/b71bacffabc246414df93af4df6860dc/
/raw/b71bacffabc246414df93af4df6860dc/
b71bacffabc246414df93af4df6860dc
js
JavaScript
5
2019-07-19T05:02:20
True
False
False
/api/public/snipt/114964/
detect-animation-end-jquerycss
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">el</span><span class="p">.</span><span class="nx">one</span><span class="p">(</span><span class="s1">&#39;webkitAnimationEnd oanimationend msAnimationEnd animationend&#39;</span><span class="p">,</span> </span><span id="L-2"><a name="L-2"></a><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="c1">// code to execute after animation ends </span> </span><span id="L-4"><a name="L-4"></a> <span class="nx">myBox</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s1">&#39;change-size&#39;</span><span class="p">);</span> </span><span id="L-5"><a name="L-5"></a><span class="p">});</span> </span></pre></div> </td></tr></table>
css, jquery, js

Text only

Mobile: -webkit-transform translate make elements disappear on iOS5

1
2
3
Nope, actually it's the -webkit-overflow-scrolling: touch properties (wherever it is) which makes those "css translated elements" disappear.

Hope it helps someone.
https://snipt.net/embed/873afdb2a59dadeeabdea14b8e59f5bb/
/raw/873afdb2a59dadeeabdea14b8e59f5bb/
873afdb2a59dadeeabdea14b8e59f5bb
text
Text only
3
2019-04-07T21:46:34
True
False
True
Feb 12, 2014 at 11:35 AM
/api/public/snipt/113075/
mobile-webkit-transform-translate-make-elements-disappear-on-ios5
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Nope, actually it&#39;s the -webkit-overflow-scrolling: touch properties (wherever it is) which makes those &quot;css translated elements&quot; disappear. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Hope it helps someone. </span></pre></div> </td></tr></table>
css, disappear, invisible, ios, transform, translate, translate3d