Lädt...


🔧 Part 2 : Capturing Attention with Motion UI CSS Animations 🎨- : Bounce Animation, Parallax Scrolling, and Hover Animations 🫠


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Animations are a great way to bring your web projects to life. In this post, we'll explore three CSS effects that can add a touch of interactivity and style to your website: Bounce, Parallax Scrolling, and Hover Animations.

1. 🎾 Bounce Animation

The Bounce effect is a playful animation where an element moves up and down, creating a bouncing illusion. This effect can be useful for drawing attention to a button or call to action.

Image description

Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bounce Animation</title>
    <style>
        .bounce {
            display: inline-block;
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border-radius: 5px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-30px); }
            60% { transform: translateY(-15px); }
        }
    </style>
</head>
<body>
    <div class="bounce">Bounce Me!</div>
</body>
</html>

2. 🌄 Parallax Scrolling

Parallax scrolling creates an illusion of depth by moving the background at a slower speed than the foreground content. It’s great for creating visually appealing sections.

Image description

Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Parallax Scrolling</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        .parallax {
            background: url('background.jpg') no-repeat center center;
            background-attachment: fixed;
            background-size: cover;
            height: 100vh;
        }

        .content {
            padding: 20px;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            margin: 0;
        }
    </style>
</head>
<body>
    <div class="parallax"></div>
    <div class="content">
        <h1>Parallax Effect</h1>
        <p>This background moves at a different speed than the content above.</p>
    </div>
</body>
</html>

3. 🌀 Hover Animations

Hover animations are simple but effective ways to make your UI interactive. A common example is rotating an icon when it’s hovered.

Image description
Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hover Animation</title>
    <style>
        .icon {
            font-size: 40px;
            transition: transform 0.3s ease;
            display: inline-block;
            margin: 20px;
        }

        .icon:hover {
            transform: rotate(45deg);
        }
    </style>
</head>
<body>
    <div class="icon">🔄</div>
</body>
</html>

Conclusion
These three effects—Bounce, Parallax Scrolling, and Hover Animations—are easy to implement and can greatly enhance the user experience on your website. Try integrating them into your next project and see how they transform your design!

Part Title Link
1 Capturing Attention with Motion UI CSS Animations ✨- : Fade In/Out, Slide In/Out, and Scale Up Effects 🫠 Read
2 Capturing Attention with Motion UI CSS Animations 🎨- : Bounce Animation, Parallax Scrolling, and Hover Animations 🫠 Read

LinkedIn : https://www.linkedin.com/in/pratik-tamhane-583023217/

Behance : https://www.behance.net/pratiktamhane

...

🔧 ✨ 2 Parallax Background Effects in CSS - Simple & Horizontal Parallax : Part1


📈 54.87 Punkte
🔧 Programmierung

🕵️ Attention! Attention!! Attention!!!


📈 42.23 Punkte
🕵️ Hacking

🔧 Implement Smooth Scrolling & Parallax Effect in Next.js using Lenis and GSAP


📈 41.51 Punkte
🔧 Programmierung

🔧 An iPhone workaround broke my parallax scrolling effect 📵💔


📈 39.9 Punkte
🔧 Programmierung

🔧 Design a Carousel Column Expansion Animation Effect on Hover using CSS


📈 39.47 Punkte
🔧 Programmierung

🔧 How to create button hover animation effect using CSS ?


📈 39.47 Punkte
🔧 Programmierung

🔧 ✨ Stunning HTML & CSS Card Animation Tutorial on Hover 💻


📈 39.47 Punkte
🔧 Programmierung

🔧 Cursor Animation : Creating Smooth Hover Effects in CSS


📈 39.47 Punkte
🔧 Programmierung

🔧 Creating a Scrolling Logo Animation with Tailwind CSS


📈 37.7 Punkte
🔧 Programmierung

🐧 Add Hover Text Without JavaScript Like we Hover on a User’s Name


📈 36.6 Punkte
🐧 Linux Tipps

🔧 Hover Preview: My First VsCode extension to preview on hover [Beta release]


📈 36.6 Punkte
🔧 Programmierung

🔧 Parallax using scroll driven animations


📈 35.87 Punkte
🔧 Programmierung

🔧 Parallax Website with Scroll-Triggered Animations


📈 35.87 Punkte
🔧 Programmierung

🔧 Create Stunning Parallax Animations On Your Website


📈 35.87 Punkte
🔧 Programmierung

🎥 Motion based parallax with face tracking - Made with TensorFlow.js


📈 35.59 Punkte
🎥 Video | Youtube

🔧 How to Create Scroll Animations with React, Tailwind CSS, and Framer Motion


📈 34.43 Punkte
🔧 Programmierung

🔧 Animation -13 : Simple Content Preload CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -18 : Pure CSS Gooey Loader Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -19 : Simple preloader CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Animation -22 : Cube Flipping Loader CSS Animation


📈 34.23 Punkte
🔧 Programmierung

🔧 Introduction of CSS, What is CSS, Why we use CSS and How CSS describe the HTML elements


📈 34.07 Punkte
🔧 Programmierung

🔧 Become an Animation Master with Anime.js - Part 1: Setting up the Environment and Basic Animations


📈 33.61 Punkte
🔧 Programmierung

🔧 How to make a Parallax Effect with Html, Css and JS


📈 33.11 Punkte
🔧 Programmierung

🎥 ScrollSpy animations with just CSS thanks to Scroll-Driven Animations


📈 33.09 Punkte
🎥 Video | Youtube

🐧 What is your opinion on smooth scrolling vs traditional non smooth scrolling on your favorite apps?


📈 33.04 Punkte
🐧 Linux Tipps

🔧 Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 2)


📈 32.86 Punkte
🔧 Programmierung

🔧 Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 1)


📈 32.86 Punkte
🔧 Programmierung

🔧 Creating CSS-Only Parallax Effects: Step-by-Step Guide


📈 31.49 Punkte
🔧 Programmierung

🔧 Creating Parallax Effects with CSS


📈 31.49 Punkte
🔧 Programmierung

🔧 Hover Text Animation


📈 31.36 Punkte
🔧 Programmierung

📰 VR-Handschuh: Dexta Robotics' Exoskelett für Motion Capturing


📈 30.19 Punkte
📰 IT Nachrichten

matomo