Skip to main content

How to Create a 3D Image Gallery Using HTML & CSS

 

#3d #gallery #image  #html #css #foryou #world #happy # website #webdesign #webdeveloper #how to #howto #trending #viral #srilanka #youtube #tiktok #blog  #howtocreate #Javascript #image #imageuploader 


🌟 Dive into the world of web design with our latest tutorial! Learn step-by-step how to create a stunning 3D Image Gallery using HTML and CSS. 🖼️💻 Elevate your website with this easy-to-follow guide, perfect for beginners and enthusiasts alike. Impress your audience with a visually engaging gallery that adds a touch of modern flair to your online presence. Watch, learn, and transform your web design skills today! 🔧✨ #webdesign #html #css #tutorial

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>3D Image Gallery </title>
</head>
<body>
    <div class="slider">
        <span style="--i:1"><img src="Images/Animeted Loading Button.jpg"
            alt="Animated Loading Button"></span>
        <span style="--i:2"><img src="Images/Calculator.jpg"
            alt="Calculator"></span>
        <span style="--i:3"><img src="Images/Check Box.jpg"
            alt="Check Box"></span>
        <span style="--i:4"><img src="Images/Logo Hover.jpg"
            alt="Logo Hover"></span>
        <span style="--i:5"><img src="Images/Netflix.jpg"
            alt="Netflix"></span>
        <span style="--i:6"><img src="Images/QR Code Genarator.jpg"
            alt="QR Code Genarator"></span>
        <span style="--i:7"><img src="Images/Sign Up.jpg"
            alt="Sign Up"></span>
        <span style="--i:8"><img src="Images/Solar System.jpg"
            alt="Solar System"></span>
    </div>
    <script>
        const slides = document.querySelectorAll('.slide');
slides.forEach((slide, index) => {
    slide.style.setProperty('--i', index);
});
    </script>
</body>
</html>

style.css

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: linear-gradient(to right,rgb(73, 55, 55),gray);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.slider{
    position: relative;
    width: 125px;
    height: 150px;
    transform-style:preserve-3d ;
    animation: rotate 60s linear infinite;
}
@keyframes rotate {
    0%{
        transform:perspective(1000px) rotateY(0deg);
    }
    100%{
        transform:perspective(1000px) rotateY(360deg);
    }
}
.slider span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    transform-origin:center ;
    transform-style:preserve-3d;
    transform:rotateY(calc(var(--i)*45deg))translateZ(350px) ;
}
.slider span img{
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height:100%;
    border-radius: 5px;
    object-fit: cover;
    transition: 0.5s;
}
.slider span:hover img{
    transform: translateY(-50px) scale(1);
    cursor:pointer;
}

.slider:hover{
    animation-play-state: paused;
}









































Comments

Popular posts from this blog

How to Create Animate Mic Logo

    Embark on a design and coding adventure with our tutorial on creating and animating a microphone logo using HTML and CSS. In this concise yet comprehensive guide, we'll navigate logo design principles, emphasizing simplicity and visual balance. Seamlessly transitioning to animation, we'll bring the mic logo to life, making it dynamic and engaging. What sets this tutorial apart is its accessibility—no complex software, just the power of code.🎙️✨ #logoanimation #designtutorial #webdevelopment Don't forget to like, share, and subscribe for more web development tutorials and tips. If you have any questions or need further assistance, feel free to leave a comment, and we'll be happy to help you out. Happy coding! Like Us On Facebook:    / codingwithnexusofficial   Follow Us On Instagram:    / coding_with_nexus   Follow Us On TikTok:    / coding.with.nexus  index.html <! DOCTYPE html > < ...

Parallax Scrolling Website Effect Using HTML CSS

  Welcome to our step-by-step tutorial on creating Parallax Scrolling Website Effect using #html  & #css  . In this video, we'll guide you through the process of building a simple yet effective Parallax Effect for your web projects. With just a few lines of code, you'll learn how to create a user-friendly interface that allows users to this effect seamlessly. Whether you're a beginner or an experienced developer looking to enhance your skills, this tutorial is perfect for you. Follow along and empower yourself to create dynamic web applications with ease! Don't forget to like, share, and subscribe for more coding tutorials. Let's get started! index.html  <! DOCTYPE html > < html lang = "en" >   < head >     < meta charset = "UTF-8" />     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" />     < title > Parallax Scrolling Website </ title >     ...

Build a Simple Calculator Using HTML, CSS and JavaScript | Step-by-Step Tutorial

    You'll learn how to create a fully functional calculator using #html #css and #javascript . Follow along as we break down the process into easy-to-understand steps, from designing the user interface with HTML and CSS to adding interactive functionality with JavaScript. 🔹 Learn the fundamentals of HTML, CSS, and JavaScript. 🔹 Design a sleek and user-friendly calculator interface. 🔹 Implement basic arithmetic operations, including addition, subtraction, multiplication, and division. 🔹 Handle user input and display results in real-time. 🔹 Enhance the calculator with clear functionality. 🔹 Perfect for web development beginners and anyone looking to sharpen their skills. By the end of this tutorial, you'll have your very own #calculator that you can showcase in your web development portfolio. index.html <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport...