tailwind+gsap+svg实现牛顿钟摆动画效果代码
代码语言:html
所属分类:动画
代码描述:tailwind+gsap+svg实现牛顿钟摆动画效果代码
代码标签: tailwind gsap svg 牛顿 钟摆 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss_3.3.3.js"></script>
</head>
<body translate="no">
<main class="bg-black h-screen grid place-items-center text-white">
<section class="relative">
<svg class="relative drop-shadow-2xl top-0 rotate-45 origin-top [perspective:0]" width="100" height="600" viewBox="0 0 100 600" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="50.5" y1="2.18557e-08" x2="50.5" y2="500" stroke="white" />
<circle cx="50" cy="550" r="50" fill="white" />
</svg>
<svg class="absolute drop-shadow-lg top-0 rotate-45 origin-top [perspective:50px]" width="100" height="600" viewBox="0 0 100 600" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="50.5" y1="2.18557e-08" x2="50.5" y2="500" stroke="white" />
<circle cx="50" cy="550" r="50" fill="white" />
</svg>
<svg class="absolute drop-shadow-2xl top-0 rotate-45 origin-top [perspective:100px]" width="100" height="600" viewBox="0 0 100 600" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="50.5" y1="2.18557e-08" x2="50.5" y2="500&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0