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 a Sign Up Form Using HTML & CSS

    In this tutorial, we'll guide you through the process of creating a standard sign-up form using HTML and CSS. It's a fundamental skill for anyone interested in web development or design. This tutorial is suitable for beginners and provides a solid foundation for understanding how to create a sign-up form. If you're interested in web development or web design, this is a crucial skill to master. If you find this video helpful, please consider liking and subscribing for more web development tutorials. Let's start building your sign-up form together!  1.Create a New Folder 2.Open the Folder in Vs Code  3.Create index.html and style.css Files  4.Create Image Folder and download  Background picture to Image folder 5.Begin Coding  index.html  <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >

How to Create Solar System Using HTML & CSS

  🌟 Explore the Universe: Building a Solar System with HTML and CSS! 🌟 Welcome to another mind-blowing adventure on @Coding With Nexus ! 🚀 Join us as we embark on an interstellar journey to create our very own solar system using nothing but HTML and CSS. 🌌 First Create a New Folder, Then 1.Open the folder in Vs Code 2.Create index.html and style.css Files 3.Begin Coding  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 > Solar System </ title > </ head > < body >     < div class = "container" >         < div class = "sun" ></ div >         < div class = "earth" >             < div class = "moon" ></

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 > < html lang = "en" > < head >     < meta