• 旋转的指示牌


    <template>
        <div class="Layout">
            <div class="windmill">
                
                <div class="windmill-layout">
                    
                    <div class="windmill-transform">
                        
                        <div class="windmill-blade red">div>
                        <div class="windmill-blade blue">div>
                        <div class="windmill-blade green">div>
                        <div class="windmill-blade orange">div>
                        
                        <div class="windmill-stick x">div>
                        <div class="windmill-stick y">div>
                    div>
                div>
            div>
        div>
    template>
    <script setup>
    
    script>
    <style lang="less" scoped>
    .Layout {
        width: 300px;
        height: 300px;
        background-image: url(@/assets/starspace.png);
        position: relative;
    }
    
    
    .windmill {
        width: 100px;
        height: 100px;
        position: absolute;
        bottom: 30px;
        left: 30%;
    
        &-layout {
            width: 100px;
            height: 100px;
            position: absolute;
            perspective: 800px;
            transform-style: preserve-3d;
            transform: rotateX(70deg);
        }
    
        &-transform {
            width: 100px;
            height: 100px;
            animation: rotate linear infinite 10s;
            transform: rotateZ(45deg);
            transform-style: preserve-3d;
        }
    
        &-stick {
            width: 4px;
            height: 70px;
            position: absolute;
            left: 48px;
            top: 15px;
            background-color: rgb(0, 0, 0);
    
            &.x {
                transform: translateZ(-20px) rotateX(90deg) rotateY(45deg);
            }
    
            &.y {
                transform: translateZ(-20px) rotateX(90deg) rotateY(-45deg);
            }
        }
    
        &-blade {
            width: 50px;
            height: 30px;
            position: absolute;
            opacity: 0.5;
    
            &.blue {
                background-color: blue;
                transform: rotateX(90deg);
                top: 35px;
            }
    
            &.orange {
                background-color: orange;
                transform: rotateZ(90deg) rotateX(90deg);
                left: 25px;
                top: 60px;
            }
    
            &.red {
                background-color: red;
                transform: rotateX(90deg);
                left: 50px;
                top: 35px;
            }
    
            &.green {
                background-color: green;
                transform: rotateZ(90deg) rotateX(90deg);
                left: 25px;
                top: 10px;
            }
        }
    }
    
    @keyframes rotate {
        from {
            transform: rotateZ(0deg);
        }
    
        to {
            transform: rotateZ(360deg);
        }
    }
    style>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
  • 相关阅读:
    vue中watch原理浅析
    每章一篇博客带你拿下吉林大学JAVAEE期末(二)
    二叉树中和为某一值的路径(二)
    linux-文件服务
    热点事件情境下微博舆情反转预测
    Linux内核CPU调度域内容讲解
    KMP算法——通俗易懂讲好KMP算法:实例图解分析+详细代码注解 --》你的所有疑惑在本文都能得到解答
    [附源码]计算机毕业设计JAVA学生考试成绩分析系统
    源码编译部署LAMP
    gitlab拉取项目报128 fatal: unable to access ‘xxx.git/‘
  • 原文地址:https://blog.csdn.net/qq_38946996/article/details/127987726