gsap+splitting实现圆形分割loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:gsap+splitting实现圆形分割loading加载动画效果代码

代码标签: gsap splitting 圆形 分割 loading 加载 动画

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

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

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


<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/splitting.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/splitting-cells.css">
<style>
.box {
	width: 100%;
	aspect-ratio: 1;
	background: linear-gradient(#7a83ff, #0011ff);
	border-radius: 50%;
}

.wrap {
	width: 4rem;
	aspect-ratio: 1;
	margin-block-start: 0.75rem;
	outline: 1px solid #3d4aff;
	outline-offset: 0.25rem;
	border-radius: 50%;
}
p {
	text-align: center;
	opacity: 0.5;
}

main {
	width: fit-content;
	display: grid;
	place-items: center;
}
main > * {
	grid-area: 1 / 1;
}
body {
	display: grid;
	place-items: center;
	min-height: 100vh;
	background: #001c0e;
	font-family: "Open Sans", sans-serif;
	color: #fff;
}
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}
</style>

  
  
</head>

<body>.........完整代码请登录后点击上方下载按钮下载查看

网友评论0