Skip to content

CSS Animation – Bulb


<!DOCTYPE html>
     <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="animation31.css">
    <link rel="stylesheet" href="">

    <div class="card">
        <div class="imgBox">
            <div class="image"></div>
            <div class="details">
                <h2>HTML AND CSS</h2>
                Edin is a fully responsive theme that helps you to create a strong–yet beautiful–online presence for your business. Edin's layout adjusts itself depending on the device you are using. This means your site will look good not only on laptop browsers, but also on devices with smaller screens, such as the iPad and iPhone.



@import url('');
    margin: 0;
    padding: 0;
    background-color: #708c00;
    font-family: 'Quicksand', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 400px;
    background: #fff;
    transform-style: preserve-3d;
    transform: translate(-50%,-50%) perspective(2000px);
    box-shadow: inset 300px 0 50px rgba(0,0,0,.5), 0 20px 100px rgba(0,0,0,.5);
    transition: 1s;
    transform: translate(-50%,-50%) perspective(2000px) rotate(-10deg);
    box-shadow: inset 20px 0 50px rgba(0,0,0,.5), 0 10px 100px rgba(0,0,0,.5);
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #475b02;
    transform-origin: bottom;
    transform: skewX(-45deg);
    content: "";
    position: absolute;
    right: -5px;
    height: 100%;
    background: #7ea301;
    transform-origin: left;
    transform: skewY(-45deg);
    background: url(;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    transform-origin: left;
    transition: 1s cubic-bezier(.15,1.7,.84,.58);
    z-index: 1;
.card:hover .image{
    transform: rotateY(-135deg);
.card .details{
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 20px;
    z-index: -1;

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: