纯css实现文字点击缩小消失动画

代码语言:html

所属分类:动画

代码描述:纯css实现文字点击缩小消失动画

代码标签: 文字 点击 缩小 消失 动画

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	height: 100vh;
	background-color: #ffcfdf;
	background-image: linear-gradient(315deg, #ffcfdf 0%, #b0f3f1 74%);
	font-family: 'Major Mono Display', monospace;
}

.noselect {
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

body, .btn {
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn {
	font-size: 30px;
	width: 150px;
	height: 30px;
	cursor: pointer;
	color: #9E768F;
	font-weight: bold;
	-webkit-tap-highlight-color: transparent;
}

.btn::before, .btn::after, .btn {
		transition: 500ms;
}

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

网友评论0