输入文字动画放大提示效果

代码语言:html

所属分类:表单美化

代码描述:输入文字动画放大提示效果

代码标签: 放大 提示 效果

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


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

<style>
body {
  align-items: center;
  height: 100%;
  justify-content: center;
  overflow: hidden;
}

#text {
  box-sizing: border-box;
  font: inherit;
  height: 20vh;
  width: 100%;
}

#keypress {
  align-items: center;
  display: flex;
  height: 80vh;
  justify-content: center;
}
#keypress > span {
  animation: type 1s ease-out;
}

@keyframes type {
  0% {
    font-size: 80vh;
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    font-size: 1em;
    opacity: 0;
    transform: translateY(-60vh);
  }
}
</style>

</head>
<body translate="no">
<textarea id="text" placeholder=&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0