search
HomeWeb Front-endCSS TutorialPure css3 realizes 3D picture cube rotation animation special effects

Pure css3 3D cube module, when the mouse is touched, the module explodes, with a small cube inside a big cube


The rendering is as follows:



The code is as follows:

<!DOCTYPE html><html><head>
    <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>css-3d旋转相册_何问起</title><base target="_blank" />
    <link rel="stylesheet" href="http://hovertree.com/texiao/css3/34/hovertree.css" /></head><body>
    <p class="hovertreeinfo">
    <h2 id="何问起css-d旋转相册">何问起css-3d旋转相册</h2>请把光标移到立方体上面,或者点击图片。<input type="button" value="还原" /></p>
    <!--/*外层最大容器*/-->
    <p class="wrap">
        <!--    /*包裹所有元素的容器*/-->
        <p class="cube">
            <!--前面图片 -->
            <p class="out_front">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/p1n3aebo.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <!--后面图片 -->
            <p class="out_back">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/6omilcpi.png"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <!--左图片 -->
            <p class="out_left">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/7ciu9jqt.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <p class="out_right">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/x9h3ho61.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <p class="out_top">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/1rysrqvg.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <p class="out_bottom">
                <img  class="pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/nre7yne5.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </p>
            <!--小正方体 -->
            <span class="in_front">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/wctv4yie.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
            <span class="in_back">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/d1w0ani7.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
            <span class="in_left">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/dys40n99.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
            <span class="in_right">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/6sqnrrgc.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
            <span class="in_top">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/o73nrdo4.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
            <span class="in_bottom">
                <img  class="in_pic lazy"  src="/static/imghwm/default1.png"  data-src="http://hovertree.com/hvtimg/bjafjg/gq0yvbe0.jpg"    / alt="Pure css3 realizes 3D picture cube rotation animation special effects" >
            </span>
        </p>
    </p>
    <p class="hovertreeinfo"><a href="http://hovertree.com">何问起</a><a href="http://hovertree.com/menu/texiao/">网页特效</a> 
    <a href="http://hovertree.com/h/bjaf/ysr2o1du.htm">代码说明</a>
    <br />
    手机扫描下面二维码:<br />
    <img src="/static/imghwm/default1.png"  data-src="https://img.php.cn/upload/article/000/000/194/3577bca7142c838eb0451735933989fd-0.png"  class="lazy"   alt="二维码"/>
    </p></body></html>

The above is the detailed content of Pure css3 realizes 3D picture cube rotation animation special effects. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is CSS Grid?What is CSS Grid?Apr 30, 2025 pm 03:21 PM

CSS Grid is a powerful tool for creating complex, responsive web layouts. It simplifies design, improves accessibility, and offers more control than older methods.

What is CSS flexbox?What is CSS flexbox?Apr 30, 2025 pm 03:20 PM

Article discusses CSS Flexbox, a layout method for efficient alignment and distribution of space in responsive designs. It explains Flexbox usage, compares it with CSS Grid, and details browser support.

How can we make our website responsive using CSS?How can we make our website responsive using CSS?Apr 30, 2025 pm 03:19 PM

The article discusses techniques for creating responsive websites using CSS, including viewport meta tags, flexible grids, fluid media, media queries, and relative units. It also covers using CSS Grid and Flexbox together and recommends CSS framework

What does the CSS box-sizing property do?What does the CSS box-sizing property do?Apr 30, 2025 pm 03:18 PM

The article discusses the CSS box-sizing property, which controls how element dimensions are calculated. It explains values like content-box, border-box, and padding-box, and their impact on layout design and form alignment.

How can we animate using CSS?How can we animate using CSS?Apr 30, 2025 pm 03:17 PM

Article discusses creating animations using CSS, key properties, and combining with JavaScript. Main issue is browser compatibility.

Can we add 3D transformations to our project using CSS?Can we add 3D transformations to our project using CSS?Apr 30, 2025 pm 03:16 PM

Article discusses using CSS for 3D transformations, key properties, browser compatibility, and performance considerations for web projects.(Character count: 159)

How can we add gradients in CSS?How can we add gradients in CSS?Apr 30, 2025 pm 03:15 PM

The article discusses using CSS gradients (linear, radial, repeating) to enhance website visuals, adding depth, focus, and modern aesthetics.

What are pseudo-elements in CSS?What are pseudo-elements in CSS?Apr 30, 2025 pm 03:14 PM

Article discusses pseudo-elements in CSS, their use in enhancing HTML styling, and differences from pseudo-classes. Provides practical examples.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool