1.前端之路-一个能进行2d缩放旋转的小东西

来源:互联网 发布:手机淘宝怎样申请账号 编辑:程序博客网 时间:2024/06/06 13:00






<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3-1作业</title>
    <style>
        div {
            font-size: 14px;
            font-weight: bold;
            line-height: 50px;
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            width: 200px;
            height: 50px;
            margin: auto;
            cursor: pointer;
            text-align: center;
            background: #abcdef;    
            transform: rotate(0deg) scale(1);
            transition: transform 2s ease;
}  
div:hover{
    line-height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    height: 100px;
    margin: auto;
    text-align: center;
    transform: rotate(360deg) scale(2);
    transition: transform 2s ease 1s;
}


    </style>
</head>
<body>
    <div>www.imooc.com</div>
</body>
</html>

阅读全文
0 0
原创粉丝点击