التخطي إلى المحتوى الرئيسي

CSS Animation and Transition Effects

 🌟 Elevate Your Website with Innovative CSS Animation and Transition Effects! 🌟


Dive into the world of CSS animations and transitions to add a touch of magic to your website. Explore mesmerizing techniques that will captivate your visitors and elevate their browsing experience.


1. Text Shadow Pulse Effect:

@keyframes pulse {

    0%, 100% {

        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);

    }

    50% {

        text-shadow: 0 0 20px rgba(255, 255, 255, 1);

    }

}


.pulsing-text {

    animation: pulse 1.5s infinite;

}



2. Background Color Shift:

.button {

    background-color: #3498db;

    transition: background-color 0.4s ease;

}


.button:hover {

    background-color: #2ecc71;

}



3. 3D Flip Card:

<div class="card">

    <div class="front">Front</div>

    <div class="back">Back</div>

</div>


.card {

    width: 200px;

    height: 300px;

    perspective: 1000px;

}


.card div {

    position: absolute;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    border: 1px solid #ccc;

}



4. Ripple Effect on Click:

.button {

    overflow: hidden;

    position: relative;

}


.button::before {

    content: '';

    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    transform: scale(0);

    animation: ripple 0.6s linear;

}


@keyframes ripple {

    to {

        transform: scale(4);

        opacity: 0;

    }

}



5. Scrolling Progress Indicator:

<div class="progress-bar"></div>


.progress-bar {

    position: fixed;

    top: 0;

    left: 0;

    height: 5px;

    background-color: #3498db;

    transition: width 0.1s ease;

}



6. Image Hover Zoom:

.image-hover {

    overflow: hidden;

}


.image-hover img {

    transition: transform 0.5s ease;

}


.image-hover:hover img {

    transform: scale(1.1);

}



7. Slide In Navigation:

<div class="nav">

    <ul>

        <li>Home</li>

        <li>About</li>

        <li>Contact</li>

    </ul>

</div>


.nav {

    transform: translateX(-100%);

    transition: transform 0.3s ease;

}


.nav.active {

    transform: translateX(0);

}



Ready to enchant your website with these CSS codes? Explore these techniques and transform your digital experience!


🚀 #CSSAnimations #WebDesign #Innovation #html #web #new


---


@Html_codee