h5+正方体3D旋转+2个园互相转圈+下拉栏+来回忽闪+html旋转动画+补间动画+双飞翼布局+对话框那个三角

正方体3D旋转html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        ul{
            position: relative;
            width: 200px;
            height: 200px;
            transform-style: preserve-3d;
            margin: 250px auto;
            animation: run 5s infinite linear;
        }
        li{
            list-style: none;
            width:200px;
            height: 200px;
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0.4;
        }
        li:first-child{
            background: red;
            transform: translateZ(100px)
        }
        li:nth-child(2){
            background: green;
            transform: translateY(-100px) rotateX(90deg);
        }
        li:nth-child(3){
            background: pink;
            transform: translateY(100px) rotateX(90deg);
        }
        li:nth-child(4){
            background: orange;
            transform: translateX(-100px) rotateY(90deg);
        }
        li:nth-child(5){
            background: blue;
            transform: translateX(100px) rotateY(90deg);
        }
        li:nth-child(6){
            background: blue;
            transform: translateZ(-100px);
        }
        @keyframes run {
            0%{
                transform:rotateX(0deg) rotateY(0deg);
            }
            100%{
                transform:rotateX(360deg) rotateY(360deg);
            }
        }
    </style>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
    </ul>

</body>
</html>

2个园互相旋转

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bigCircle{
            width: 200px;
            height:200px;
            border-radius: 50%;
            background: rgba(0,0,0,.5);
            position: relative;
            animation: rotate 4s infinite linear;
            margin: 100px auto;
        }
        .smCircle{
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255,0,0,.6);
            animation: run 4s infinite linear;
            margin: 0 auto;
        }
        @keyframes run {
            0%{
                transform: rotate(0deg);
            }
            100%{
                transform: rotate(180deg);
            }
        }
        @keyframes rotate {
            0%{
                transform: rotate(0deg);
            }
            100%{
                transform: rotate(-360deg);
            }
        }
    </style>
</head>
<body>
<div class="bigCircle">
    转
</div>
<div class="smCircle">倒转</div>


</body>
</html>

html下拉栏

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin:0;
            padding: 0;
        }
        .clear:after{
            content:"\200B";
            display: block;
            clear: both;
            width: 0;
            height: 0;
        }
        li{
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        .item{
            float: left;
            width: 300px;
            text-align: center;
            background: #999;
            color: #fff;
            position: relative;
        }
        a{
            line-height: 40px;
            color: #fff;
        }
        .child{
            position: absolute;
            top: 40px;
            left: 0;
            width: 300px;
            background: #666;
            display: none;
        }
        .item:hover .child{
            display: block;
        }
        .child li:hover{
            background: blue;
        }
    </style>
</head>
<body>
<ul class="clear">
    <li class="item">
        <a href="#">首页</a>
        <ul class="child">
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
        </ul>
    </li>
    <li class="item">
        <a href="#">导航页</a>
        <ul class="child">
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
            <li><a href="#">列表</a></li>
        </ul>
    </li>
</ul>
<div class="" style="width: 100%;height: 300px;background: red"></div>
</body>
</html>

html+来回忽闪

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        p{
            width: 38px;
            height: 43px;
            background: url("0901/pic1.png") no-repeat -334px -47px;
        }
        div{
            width: 40px;
            height: 43px;
            background: url("0901/pic1.png") no-repeat -370px -167px;
        }
        body{
            background: red;
        }
        .light{
            margin: 0 auto;
            width: 0;
            height: 0;
            background: #fff;
          /*  box-shadow: 0 0 20px 50px rgba(255,255,255,.8);*/
            animation: run 1s infinite;
        }
        @keyframes run {
            0%{
                box-shadow: 0 0 20px 20px rgba(255,255,255,.8);
            }
            25%{
                box-shadow: 0 0 20px 20px rgba(255,255,255,0.3);
            }
            50%{
                box-shadow: 0 0 20px 20px rgba(255,255,255,.1);
            }
            70%{
                box-shadow: 0 0 20px 20px rgba(255,255,255,0.3);
            }
            100%{
                box-shadow: 0 0 20px 20px rgba(255,255,255,0.8);
            }
        }
    </style>
</head>
<body>
<p></p>
<div></div>
<div class="light"></div>
</body>
</html>

html旋转动画+补间动画

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box{
            width: 120px;
            height: 80px;
            line-height: 80px;
            text-align: center;
            background: darkblue;
            color: #fff;
            transition: all 1s ease 1s;
            margin: 200px auto;
        }
        .box:hover{
            transform: rotate(360deg) scale(2,1.2);
        }
        .pop{
            width: 500px;
            height: 50px;
            background: red;
            animation:change 5s linear;
            animation-fill-mode: forwards;
        }
        @keyframes change {
            0%{
                width: 500px;
            }
            50%{
                width: 800px;
            }
            100%{
                width: 300px;
            }
        }
    </style>
</head>
<body>
<div class="box">CSS过度</div>
<div class="pop"></div>
</body>
</html>

html双飞翼布局

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .container{
            width: 100%;
           /* height: 500px;*/
        }
        .center{
            width: 100%;
            height: 500px;
            float: left;
            background: red;
        }
        .left,.right{
            width: 250px;
            height: 500px;
            background: green;
            float: left;
        }
        .right{
            background: blue;
        }
        .left{
            margin-left: -100%;
        }
        .right{
            margin-left: -250px;
        }
        p{
            width: 100%;
            padding: 0 250px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="center"><p>中间</p></div>
        <div class="left">左边</div>
        <div class="right">右边</div>
    </div>
</body>
</html>

html+对话框那个三角

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
        }
        body{
            text-align: center;
        }
        .parent{
            display: inline-block;
        }
        li{
            width: 300px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            font-size: 14px;
            color: #fff;
        }
        .title{
            background: red;
        }
        .child{
            background: #666;
            display: none;
        }
        .parent:hover .child{
            display: block;
        }

        .pic{
            box-shadow: 10px 10px 10px 10px rgba(0,0,0,.5);
        }
        .dia{
            width: 200px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            border-radius: 5px;
            background: orange;
            margin: 100px auto;
            position: relative;
        }
        .dia:after{
            content: "\200B";
            display: block;
            width: 0;
            height: 0;
            border:10px solid transparent;
            border-right: 10px solid orange;
            position: absolute;
            left: -20px;
            top: 7px;
        }
    </style>
</head>
<body>
<ul class="parent">
    <li class="title">项目一</li>
    <li class="pos">
        <ul class="child">
            <li>fdsjjhv</li>
            <li>fdsjjhv</li>
            <li>fdsjjhv</li>
            <li>fdsjjhv</li>
        </ul>
    </li>
</ul>
<div>
    <img src="0901/mutimedia.jpg" class="pic">
</div>
<!--对话框-->
<p class="dia">sdjvnsubguv</p>
</body>
</html>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值