Home » » [Web-development (jquery)] CSS3 Transition

[Web-development (jquery)] CSS3 Transition

Written By Unknown on Sunday 2 August 2015 | 04:27

CSS3 TransitionCSS3 Transition

Use CSS 3 transition to give action to elements in your website, such as change in colour, motion and more!




//CSS
<style>
.my_class {
transition: transform .5s ease-in;
-moz-transition: -moz-transform .5s ease-in;
-o-transition: -o-transform .5s ease-in;
-webkit-transition: -webkit-transform .5s ease-in;
}
.my_class:hover {
transform: rotate(7deg);
-moz-transform: rotate(7deg);
-o-transform: rotate(7deg);
-webkit-transform: rotate(7deg);
}
</style>
//HTML
<p><a href="#">Mouse over this example paragraph to <br/>see it rotate 7degrees using a transform transition.</a></p>

0 comments:

Post a Comment

 
D.M.C.A Disclaimer - All contents published under GNU General Public License.
We does not upload or host any files on this website.
Copyright © 2015. MAYDANG
Proudly powered by Blogger