css+div实现播放按钮点击动画效果代码

代码语言:html

所属分类:其他

代码描述:css+div实现播放按钮点击动画效果代码

代码标签: css div 播放 按钮 点击 动画

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

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

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

  
<style>
body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e6e6e6;
	--clip: #e6e6e6;
}

.content {
	width: 38vmin;
	height: 15vmin;
	background: #2b6ea1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10vmin;
	box-shadow: 0 1px 0 1px #0002, 0 1vmin 0 0 #1f5176, 0 1.5vmin 0 0 #1f5176, 0 1.5vmin 0 1px #0004, 0 -1px 0 1px #0002, 0 calc(1.5vmin + 1px) 5px #fff6;
	transition: all 0.5s ease 0s;
}

.content:hover {
	transform: translateY(5px);
	transition: all 0.5s ease 0s;
	box-shadow: 
		0 1px 0 1px #0002, 
		0 calc(1vmin - 5px) 0 0 #2c4050, 
		0 calc(1.5vmin - 5px) 0 0 #2c4050, 
		0 calc(1.5vmin - 5px) 0 1px #0004, 
		0 -1px 0 1px #0002, 
		0 calc(1.5vmin - 4px) 5px #fff6;
}


.letter-p {
	border-left: 1vmin solid var(--clip);
	height: 6vmin;
	border-radius: 0.5vmin;
	/* margin-left: -1vmin; */
	transition: all 0.5s ease 0s;
}
.letter-p:before {
	content: "";
	border: 1vmin solid var(--clip);
	border-color: var(--clip) var(--clip) var(--clip) #fff0;
	width: 3vmin;
	height: 2vmin;
	margin-top: 0vmin;
	margin-left: -1vmin;
	position: absolute;
	border-radius: 10% 50% 50% 0% / 10% 50% 50% 10%;
}



.letter-l {
	border-left: 1vmin solid var(--clip);
	border-bottom: 1vmin solid var(--clip);
	height: 4.5vmin;
	width: 3vmin;
	margin-top: 0.5vmin;
	margin-left: 5.5vmin;
	margin-right: 2.25vmin;
	border-radius: 0 0 0 0.5vmin;
	position: relative;
	transition: all 0.5s ease 0s;
}
.letter-l:before, .letter-l:after {
	content: "";
	background: var(--clip);
	width: 1vmin;
	height: 1vmin;
	position: absolute;
	border-radius: 100%;
	left: -0.95vmin;
	margin-top: -0.65vmin;
}

.letter-l:after {
	left: 2.5vmin;
	margin-top: 4.45vmin;
}





.letter-a {
	height: 6vmin;
	width: 6vmin;
	/* margin-top: -0.65vmin; */
	/* margin-left: 1.6vmin; */
	border-radius: 0.5vmin;
	transition: all 0.5s ease 0s;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: initial-letter 1s ease 1s 2 alternate ;
}
.letter-a:before, .letter-a:after {
	content: "";
	border-left: 1vmin solid var(--clip);
	height: 6.5vmin;
	border-radius: 0.5vmin;
	transform: rotate(25deg);
	position: absolute;
	transform-origin: center 0.25vmin;
}
.letter-a:after {
	transform: rotate(-25deg);
}
.letter-a span {
	border-bottom: 1vmin solid var(--clip);
	width: 4.75vmin;
	margin-top: 2.5vmin;
	margin-left: 0vmin;
	border-radius: 0.5vmin;
	position: absolute;
	transition: all 0.5s ease 0s;
	animation: initial-span 1s ease 1s 2 alternate;
}




.letter-y {
	border-left: 1vmin solid var(--clip);
	height: 2vmin;
	margin-top: 3.5vmin;
	margin-left: 2.5vmin;
	border-radius: 0.5vmin;
	transition: all.........完整代码请登录后点击上方下载按钮下载查看

网友评论0