snipt

Ctrl+h for KB shortcuts

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 How To Scale An Image

1
2
3
4
5
6
7
8
/*Make an image bigger when you hover*/
img:hover{ 
	-webkit-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -o-transform: scale(1.5);
    -ms-transform: scale(1.5);
    transform: scale(1.5)
}
https://snipt.net/embed/a752a6fda79ae9fccbf8ae00609a9792/
/raw/a752a6fda79ae9fccbf8ae00609a9792/
a752a6fda79ae9fccbf8ae00609a9792
css
CSS
8
2016-12-26T19:26:15
True
False
True
Jan 27, 2013 at 06:53 PM
/api/public/snipt/54615/
css3-how-to-scale-an-image
<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> <a href="#L-8">8</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">/*Make an image bigger when you hover*/</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">img</span><span class="nd">:hover</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">transform</span><span class="o">:</span> <span class="n">scale</span><span class="p">(</span><span class="m">1</span><span class="o">.</span><span class="m">5</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">transform</span><span class="o">:</span> <span class="n">scale</span><span class="p">(</span><span class="m">1</span><span class="o">.</span><span class="m">5</span><span class="p">);</span> </span><span id="L-5"><a name="L-5"></a> <span class="o">-</span><span class="n">o</span><span class="o">-</span><span class="n">transform</span><span class="o">:</span> <span class="n">scale</span><span class="p">(</span><span class="m">1</span><span class="o">.</span><span class="m">5</span><span class="p">);</span> </span><span id="L-6"><a name="L-6"></a> <span class="o">-</span><span class="n">ms</span><span class="o">-</span><span class="n">transform</span><span class="o">:</span> <span class="n">scale</span><span class="p">(</span><span class="m">1</span><span class="o">.</span><span class="m">5</span><span class="p">);</span> </span><span id="L-7"><a name="L-7"></a> <span class="n">transform</span><span class="o">:</span> <span class="n">scale</span><span class="p">(</span><span class="m">1</span><span class="o">.</span><span class="m">5</span><span class="p">)</span> </span><span id="L-8"><a name="L-8"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
"SCALE IMAGE", CSS3, HOVER