TweenMax实现svg粉色可爱泡泡滑竿表情拖动选择器效果代码

代码语言:html

所属分类:拖放

代码描述:TweenMax实现svg粉色可爱泡泡滑竿表情拖动选择器效果代码

代码标签: TweenMax 泡泡 滑竿 表情 拖动 选择 粉色

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <link href='https://fonts.googleapis.com/css?family=Passion One' rel='stylesheet' type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1">



    <style>
        body {
          background-color:#2d2d2d;
          overflow: hidden;
          /* font-family: 'Fjalla One', sans-serif; */
          font-family: 'Passion One', sans-serif;
          display: flex;
          align-items: center;
          justify-content: center;   
        }
        
        body,
        html {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
          -webkit-tap-highlight-color: rgba(0,0,0,0); 
          text-align:center
        }
        
        
        svg{
          width:80%;
          height:80%;
          visibility:hidden;
        /*  overflow:visible; */
        }
        .shine, .iconContainer{
          pointer-events:none;
        }
        .dot{
          cursor:pointer;
        }
        
        .shine circle{
          stroke:#FFF;
        }
        
        .speechBubbleGroup text{
          text-anchor:middle;
          font-size:29px;
          
        }
        
        line{
          vector-effect:"non-scaling-stroke";
        }
        
        .hitArea, .dragContainer{
          -webkit-tap-highlight-color: rgba(0,0,0,0);
        }
    </style>

</head>

<body>
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 800 600" text-rendering="auto" preserveAspectRatio="xMidYMid meet">
<defs>
<circle class="dot" fill=&q.........完整代码请登录后点击上方下载按钮下载查看

网友评论0