gsap+svg实现卷纸开关切换效果代码

代码语言:html

所属分类:其他

代码描述:gsap+svg实现卷纸开关切换效果代码

代码标签: gsap svg 卷纸 开关 切换

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

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

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


  
  
  
  
<style>
body {
 background-color: #ff608e;
 overflow: hidden;
 text-align:center;
  display: flex;
  align-items: center;
  justify-content: center; 
}

body,
html {
 height: 100%;
 width: 100%;
 margin: 0;
 padding: 0;
}

svg {
 width: 100%;
 height: 100%;
 visibility: hidden;
 
}

#bogRoll {
	cursor: pointer;
}
</style>

  
  
</head>

<body>
  <svg id="mainSVG" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">

  <defs>
    <linearGradient id="bogRollGrad" x1="360.24" y1="228.88" x2="360.24" y2="400.21" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#bfbbbc"/>
      <stop offset=".13" stop-color="#c3bfc0"/>
      <stop offset=".29" stop-color="#cfcdce"/>
      <stop offset=".45" stop-color="#e3e3e4"/>
      <stop offset=".59" stop-color="#fcffff"/>
    </linearGradient>
    <linearGradient id="bogRollGrad-2" x1="291.41" y1="222.67" x2="370.94" y2="222.67" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#e6eae9"/>
      <stop offset="1" stop-color="#e8e8e8"/>
    </l.........完整代码请登录后点击上方下载按钮下载查看

网友评论0