CSS3: Columns and -webkit-transform effect -
i've been trying apply css3 -webkit-transform effect on image inside columns scheme. i've following demo:
<html> <head> <meta charset="utf-8" /> <title>demo</title> <style> div.colsection article { display: inline-block; column-break-after: always; column-break-inside:avoid; break-inside:avoid-column; -webkit-column-break-after: always; -moz-column-break-after: always; -webkit-column-break-inside:avoid; -moz-column-break-inside:avoid; } div.colsection.noticias { column-count: 3; -webkit-column-count:3; -moz-column-count:3; } img.scale { -webkit-transition: 0.5s ease-in; -moz-transition: 0.5s ease-in-out; -o-transition: 0.5s ease-in-out; -ms-transition: 0.5s ease-in-out; transition: 0.5s ease-in-out; } img.scale:hover { -moz-transform: scale(1.1); -webkit-transform: scale(1.1); -o-transform: scale(1.1); transform: scale(1.1); } </style> </head> <body> <div class="section main" id="noticias"> <h1>news</h1> <div class="colsection noticias"> <article> <img src="http://i.imgur.com/ysma3vd.jpg" alt="" class="scale" /> <h2>n1</h2> <p>t1</p> </article> <article> <img src="http://i.imgur.com/ysma3vd.jpg" alt="" class="scale" /> <h2>n2</h2> <p>t2</p> </article> <article> <img src="http://i.imgur.com/ysma3vd.jpg" alt="" class="scale" /> <h2>n3</h2> <p>t3</p> </article> </div> </div> </body> </html>
the problem code animation tend end in strange behaviors, instance:
safari when place mouse on second image, no animation happens image disappears. first 1 works indented , nothing happens on last one.
chrome middle image goes down , last 1 flickers bit.
Comments
Post a Comment