C# Jadu
  • Home
  • Asp.net
  • Web Design
    • Html
    • Css
    • Java Script
  • Bootstrap
  • Sql
    • Queries
    • Stored Procedures
  • About Me
    • About Myself
    • My Projects
    • My CV
  • Gallery
  • Do you Know?

Tuesday, 8 March 2016

How To Create Bounce Effect With CSS3 Animation

 Deepak Chaudhary     12:14     Css, Html     No comments   

Bounce Demo By DC

Deepak Chaudhary

Hi Friends...

In this article we learn how to create a bounce effect with CSS3. The basic idea behind how the bounce will start is that when the object drops on the surface the first time, it bounces of the surface and will reach its highest level. Then it gradually reaches a lower point with every bounce, until the object stops bouncing.
you can use this code in your project copy this code and paste it.

Your Code is as under

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Bounce Demo By DC</title>
    <style type="text/css">
        .animated {
            -webkit-animation-duration: 1s;
            animation-duration: 1s;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
        }
        .bounceInUp {
            -webkit-animation-name: bounceInUp;
            animation-name: bounceInUp;
        }
        .shadow {
            padding: 15px 15px 15px 40px;
            top: 100%;
            width: 400px;
            margin-top: 20px;
            background: #ffffff;
            border: 1px solid #cbcbcb;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-radius: 5px;
            -moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
            -webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
        }

        @-webkit-keyframes bounceInUp {
            0% {
                opacity: 0;
                -webkit-transform: translateY(2000px);
                transform: translateY(2000px);
            }
        }
        @keyframes bounceInUp {
            0% {
                opacity: 0;
                -webkit-transform: translateY(2000px);
                -ms-transform: translateY(2000px);
                transform: translateY(2000px);
            }
            60% {
                opacity: 1;
                -webkit-transform: translateY(-30px);
                -ms-transform: translateY(-30px);
                transform: translateY(-30px);
            }
            80% {
                -webkit-transform: translateY(10px);
                -ms-transform: translateY(10px);
                transform: translateY(10px);
            }
            100% {
                -webkit-transform: translateY(0);
                -ms-transform: translateY(0);
                transform: translateY(0);
            }
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="bounceInUp animated" style="animation-name: bounceInUp; visibility: visible;">
            <div class="shadow">
                <h1>
Deepak Chaudhary</h1>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK7s8u_-x9YxvDCbFYDmafrKWLtODwK86C3LncDREP6q4RH2214oazFpH33V602ftM74TnWABF5fT-VLMo6jxNmUjSrTuuN4K5I2gHjzVRvDSX9lS2ipayUe5nKm_y9_uASW6HU_TqIi8B/s1600-r/finalc%2523logoPNGupdated.png" />
            </div>
</div>
</form>
</body>
</html>
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Most Popular posts

  • How To Create Image wipe Effect With CSS3 Webkit Animation
    Hi Friends... In this article we learn how to create a Image wipe effect with CSS3. CSS transition and animations provide a way for web de...
  • CSS 3D Cube
    Hi Friends... CSS cubes really showcase what CSS has become over the years, evolving from simple color and dimension directives to a lang...
  • CSS 3D Transforms
    Hi Friends... There is nothing more flashy and full with eye-candy than an impressive 3D CSS demo. Although its utility outside of demos ...

About Me

Deepak Chaudhary
View my complete profile

Copyright © C# Jadu | Powered by Blogger
Design by Deepak Chaudhary