gsap实现两极磁力拖拽吸引效果代码

代码语言:html

所属分类:拖放

代码描述:gsap实现两极磁力拖拽吸引效果代码

代码标签: gsap 两极 磁力 拖拽 吸引 代码

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

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

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



* { position: relative; box-sizing: border-box; }
::selection { color: none; background: none; }
::-moz-selection { color: none; background: none; }

html, body {
  font-family: Avenir, sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0px;
}

body {

    background: #FFF;
    color: #000;

}

#data {
    position: fixed;
    right: 50px;
    top: 50px;
    z-index: 100px;
}

#container {

    position: relative;
    height: 100%;
    width: 100%;

    .mPole {
        display: block;
        position: absolute;
        z-index: 10;
        text-align: center;
        width: 50px;
        height: 50p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0