jquery+css实现悬浮倾斜div文字效果代码

代码语言:html

所属分类:悬停

代码描述:jquery+css实现悬浮倾斜div文字效果代码

代码标签: 倾斜 div 文字 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">

    <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100,900' rel='stylesheet' type='text/css'>



    <style>
        html, body {
            height: 100%;
        }
        body {
            margin: 0;
            background: radial-gradient(#666, #222);
            overflow: hidden;
        }

        .moving-zone {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 300px;
            height: 120px;
            margin: -60px 0 0 -150px;
            perspective: 800px;
        }
        .popup {
            position: absolute;
            width: 300px;
            padding: 10px;
            box-sizing: border-box;
            border-radius: 20px 0 20px 0;
            cursor: pointer;
            transform-style: preserve-3d;
            background: -webkit-linear-gradient(top left, white 50%, coral 50%);
            background: -moz-linear-gradient(top left, white 50%, coral 50%);
            background: -ms-linear-gradient(top left, white 50%, coral 50%);
            background: -o-linear-gradient(top left, white 50%, coral 50%);
            background: linear-gradient(top left, white 50%, coral 50%);
        }
        .popup:before {
            content: '';
            position: absolute;
            left: 5%;
            top: 5%;
            width: 90%;
            height: 90%;
            border-radius: inherit;
            background: rgba(0,0,0,.1);
            box-shadow: 0 0 40px 20px rgba(0,0,0,.1);
            transform: translateZ(-100px);
        }
        .popup-content {
            background: #444;
            padding: 20px;
            box-sizing: border-box;
            border-radius: 10px 0 10px 0;
        }
        .popup-t.........完整代码请登录后点击上方下载按钮下载查看

网友评论0