CSS3 i jQuery - image hover rotate transform Kategoria: WWW | Tagi: css3 | Autor: Bartłomiej Gałęzia

http://code.google.com/p/jqueryrotate/wiki/Examples

jquery

http://designshack.net/tutorialexamples/imagehovers/index.html

http://designshack.net/articles/css/joshuajohnson-2/

HTML

<div class="morph pic">
  <img src="http://lorempixel.com/300/300/nature/5" alt="beach">
</div>

CSS

/*MORPH*/
.morph {
  -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
          
transition: all 0.5s ease;
}

.morph:hover {
  border-radius: 50%;
  -webkit-transform: rotate(360deg);
     -moz-transform: rotate(360deg);        -o-transform: rotate(360deg);       -ms-transform: rotate(360deg);           transform: rotate(360deg); }

Dodaj komentarz

Brak komentarzy, bądź pierwszy i dodaj swój komentarz