gsap实现开机按钮点击动画效果代码

代码语言:html

所属分类:动画

代码描述:gsap实现开机按钮点击动画效果代码

代码标签: gsap 开机 按钮 点击 动画

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

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

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


  
  
  
<style>
@font-face {
  font-family: "BCSansHeading";
  src: url("//repo.bfw.wiki/bfwrepo/font/BritishCouncilSansW05-Headline.woff2") format("woff");
}

:root {
	--width: 237px;
	--height: 237px;
	--indigo: #23085a;
}

html, body{
	background-color: var(--indigo);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height:100%;
}

.switch {
	position: relative;
	height: 237px;
	width: 237px;
	cursor:pointer;
}

.content,
.rotate,
.shadow {
	position: absolute;
	width: var(--width);
	height: var(--height);
	top: 0;
	left: 0;
}

.content {
	color: var(--indigo);
	text-align: center;
	font-weight: bold;
	font-size: 100px;
	display: flex;
	flex-direction: column;
	gap: 0px;
	align-items: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0