snipt

Ctrl+h for KB shortcuts

CSS

Transition css3 all modern browser

1
2
3
4
-webkit-transition: background-color 500ms ease-out 1s;
-moz-transition: background-color 500ms ease-out 1s;
-o-transition: background-color 500ms ease-out 1s;
transition: background-color 500ms ease-out 1s;
https://snipt.net/embed/f1587b17e9baa3eb43ba4fb68f2e0842/
/raw/f1587b17e9baa3eb43ba4fb68f2e0842/
f1587b17e9baa3eb43ba4fb68f2e0842
css
CSS
4
2019-08-22T19:37:56
True
False
False
Nov 25, 2013 at 09:39 AM
/api/public/snipt/96624/
transition-css3-all-modern-browser
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">-webkit-transition</span><span class="o">:</span> <span class="nt">background-color</span> <span class="nt">500ms</span> <span class="nt">ease-out</span> <span class="nt">1s</span><span class="o">;</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">-moz-transition</span><span class="o">:</span> <span class="nt">background-color</span> <span class="nt">500ms</span> <span class="nt">ease-out</span> <span class="nt">1s</span><span class="o">;</span> </span><span id="L-3"><a name="L-3"></a><span class="nt">-o-transition</span><span class="o">:</span> <span class="nt">background-color</span> <span class="nt">500ms</span> <span class="nt">ease-out</span> <span class="nt">1s</span><span class="o">;</span> </span><span id="L-4"><a name="L-4"></a><span class="nt">transition</span><span class="o">:</span> <span class="nt">background-color</span> <span class="nt">500ms</span> <span class="nt">ease-out</span> <span class="nt">1s</span><span class="o">;</span> </span></pre></div> </td></tr></table>
"modern browsers", css3, transition

CSS

All Transition 0.2seconds linear

1
2
3
4
5
6
/*hover to see transition*/
#highlight a.menu {
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
transition: all 0.2s linear;
}
https://snipt.net/embed/9ae9a743fa1ef90e54792ed64df87cf6/
/raw/9ae9a743fa1ef90e54792ed64df87cf6/
9ae9a743fa1ef90e54792ed64df87cf6
css
CSS
6
2016-12-28T08:42:47
True
False
True
Feb 03, 2013 at 05:33 PM
/api/public/snipt/55101/
all-transition-02seconds-linear
<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> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">/*hover to see transition*/</span> </span><span id="L-2"><a name="L-2"></a><span class="nn">#highlight</span> <span class="nt">a</span><span class="nc">.menu</span> <span class="p">{</span> </span><span id="L-3"><a name="L-3"></a><span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="n">all</span> <span class="m">0.2s</span> <span class="n">linear</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="n">all</span> <span class="m">0.2s</span> <span class="n">linear</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a><span class="n">transition</span><span class="o">:</span> <span class="n">all</span> <span class="m">0.2s</span> <span class="n">linear</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css3, html5, linear, transition

CSS

css3 link colour transition

1
2
3
4
5
6
7
a {
	-moz-transition: color .25s ease-in-out;
    -o-transition: color .25s ease-in-out;
	-webkit-transition: color .25s ease-in-out;
	-ms-transition: color .25s ease-in-out;
	transition: color .25s ease-in-out;
}
https://snipt.net/embed/88ad8e4e879439d03a16ad6e539730df/
/raw/88ad8e4e879439d03a16ad6e539730df/
88ad8e4e879439d03a16ad6e539730df
css
CSS
7
2019-08-19T19:02:47
True
False
False
Jul 19, 2012 at 09:16 PM
/api/public/snipt/28576/
css3-link-colour-transition
<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> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">a</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="nb">color</span> <span class="m">.25s</span> <span class="n">ease</span><span class="o">-</span><span class="n">in</span><span class="o">-</span><span class="n">out</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="o">-</span><span class="n">o</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="nb">color</span> <span class="m">.25s</span> <span class="n">ease</span><span class="o">-</span><span class="n">in</span><span class="o">-</span><span class="n">out</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="nb">color</span> <span class="m">.25s</span> <span class="n">ease</span><span class="o">-</span><span class="n">in</span><span class="o">-</span><span class="n">out</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="o">-</span><span class="n">ms</span><span class="o">-</span><span class="n">transition</span><span class="o">:</span> <span class="nb">color</span> <span class="m">.25s</span> <span class="n">ease</span><span class="o">-</span><span class="n">in</span><span class="o">-</span><span class="n">out</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a> <span class="n">transition</span><span class="o">:</span> <span class="nb">color</span> <span class="m">.25s</span> <span class="n">ease</span><span class="o">-</span><span class="n">in</span><span class="o">-</span><span class="n">out</span><span class="p">;</span> </span><span id="L-7"><a name="L-7"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
colour, css3, links, transition