css实现绿色树叶悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现绿色树叶悬浮动画效果代码

代码标签: css 绿色 树叶 悬浮 动画

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

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

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


  
<style>
body {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#leaf {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 0 50%;
  cursor: pointer;
  background-color: green;
  background: linear-gradient(
    45deg,
    rgba(51, 255, 80, 1) 0%,
    rgba(0, 162, 23, 1) 50%,
    rgba(150, 244, 83, 1) 51%,
    rgba(85, 221, 49, 1) 100%
  );
  transform-origin: bottom right;
  transition: transform 500ms ease-in-out 0s;
}
#leaf::after,
#leaf::before {
  content: "";
  position:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0