10 simple CSS3 transitions effect examples

CSS3 has introduced lot of possibilities for UX designers, and the best thing about them is that the coolest parts are really simple to implement.
Just few lines of code will give you an awesome transition effect that will excite your users.  Here we are writing 10 really simple effects that will add life to your UI and smiles to your users’ faces.

All of these effects are controlled with the transition property. So we can see these effects working well in HTML page.

HTML CODE HERE

<html>
<head>
<title>10 simple css3 transitions effect examples - phpkida.com</title>
<!-- Your CSS Code Past Here -->
</head>
<body>
<div class="coman border">Inset Border</div>

<div class="coman color">Change Color</div>

<div class="coman fade">Fade in</div>

<div class="coman grow">Grow</div>

<div class="coman rotate">Rotate</div>

<div class="coman threed">3D Shadow</div>

<div class="coman shrink">Shrink</div>

<div class="coman circle">Square to Circle</div>

<div class="distortion">Radius distortion</div>

<div class="coman glow">Glowing border</div>


</body>
</html>

CSS CODE HERE

<style>
 .coman
        {            
            width:400px;
            height:250px;
            margin:20px 100px;
            background:#00CC99;
            color:#fff;
            font-weight:900;
            font-size:3.4em;            
            text-align:center;
            line-height:220px;            
            transition:all 0.5s ease;
            
        }
        
        .border:hover
        {
            box-shadow: inset 0 0 0 25px #009999;
        }
        
        .color:hover
        {
            background:#009999;
        }
        
        .fade
        {
            opacity:0.5;
        }
        .fade:hover
        {
            opacity:1;
        }
        
        .grow:hover
        {
            -webkit-transform: scale(1.3);
            -ms-transform: scale(1.3);
            transform: scale(1.3);
        }
        
        .rotate:hover
        {
            -webkit-transform: rotateZ(-30deg);
            -ms-transform: rotateZ(-30deg);
            transform: rotateZ(-30deg);
        }
        
        .threed:hover
        {
            box-shadow:
                2px 2px #009999,
                2px 2px #009999,
                3px 3px #009999;
            -webkit-transform: translateX(-3px);
            transform: translateX(-3px);
        }
        
        .shrink:hover
        {
            -webkit-transform: scale(0.8);
            -ms-transform: scale(0.8);
            transform: scale(0.8);
        }
        
        
        @-webkit-keyframes swing
        {
            15%
            {
                -webkit-transform: translateX(5px);
                transform: translateX(5px);
            }
            
            30%
            {
                -webkit-transform: translateX(-5px);
                transform: translateX(-5px);
            }
            
            50%
            {
                -webkit-transform: translateX(3px);
                transform: translateX(3px);
            }
            
            65%
            {
                -webkit-transform: translateX(-3px);
                transform: translateX(-3px);
            }
            
            80%
            {
                -webkit-transform: translateX(2px);
                transform: translateX(2px);
            }
            
            100%
            {
                -webkit-transform: translateX(0);
                transform: translateX(0);
            }
        }
        
        @keyframes swing
        {
            15%
            {
                -webkit-transform: translateX(5px);
                transform: translateX(5px);
            }
            
            30%
            {
                -webkit-transform: translateX(-5px);
                transform: translateX(-5px);
            }
            
            50%
            {
                -webkit-transform: translateX(3px);
                transform: translateX(3px);
            }
            
            65%
            {
                -webkit-transform: translateX(-3px);
                transform: translateX(-3px);
            }
            
            80%
            {
                -webkit-transform: translateX(2px);
                transform: translateX(2px);
            }
            
            100%
            {
                -webkit-transform: translateX(0);
                transform: translateX(0);
            }
        }
        
        .swing:hover
        {
            -webkit-animation: swing 1s ease;
            animation: swing 1s ease;
            -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
        }
        
        .circle:hover
        {
            border-radius:50%;
        }
        
        
.distortion {
            width:400px;
            height:250px;
            margin:20px 100px;
            background:#00CC99;
            color:#fff;
            font-weight:900;
            font-size:3.4em;            
            text-align:center;
            line-height:220px;            
            transition:all 0.5s ease;
            border-bottom-left-radius: 120px;
            border-top-right-radius: 120px; 
            border-bottom-right-radius: 15px;
            border-top-left-radius: 15px; 
            -webkit-transition: all 0.7s ease;
            transition: all 0.7s ease;
}
.distortion:hover {
            border-top-left-radius: 120px; 
            border-bottom-right-radius: 120px;
            border-top-right-radius: 15px;
            border-bottom-left-radius: 15px;
}

.glow {
            -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 185, 233, .75);
            box-shadow: 0px 0px 15px 5px rgba(0, 185, 233, .75);
            -webkit-transition: all 0.7s ease;
            transition: all 0.7s ease;
}

.glow:hover {
            -webkit-box-shadow: 0px 0px 15px 10px rgba(000, 000, 000, .75);
            box-shadow: 0px 0px 15px 10px rgba(000, 000, 000, .75);
}
        
</style>

Click on Image and download Source Code of This Tutorial

Download source code of 10-simple-css3-transitions-effect-examples

I hope you like this tutorial. Share with your friends.

Leave a Reply

Related Posts: You may like

Rotating Words with CSS Animations

Pure CSS Loader and spinners animation

Pure css drop down menu

Pure css dropdown navigation bar

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.