css 剪辑路径悬浮动画效果

代码语言:html

所属分类:悬停

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


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



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

html, body {
  height: 100%;
}

body {
  display: grid;
  place-content: center;
  align-items: center;
  font-family: "nunito", sans-serif;
  background-color: #0099ff;
}

.card {
  position: relative;
  padding: 42px 32px;
  clip-path: circle(5% at 95% 11%);
  transition: all ease-in-out .3s;
  background-color: #ffffff;
}
.card__infoicon {
  position: absolute;
  top: 10px;
  right: 28px;
  font-size: 1.4em;
  color: #000000;
  transition: ease-out .3s;
}
.card__title {
  margin: 0;
  font-size: 3em;
  line-height: 1.8;
}
.card__description {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
}
.card__credits {
  margin: 0;
  padding: 4px 0;
  font-size: 1.1em;
}
.card__reference {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: #0099ff;
  text-decoration: none;
  transition: ease-in .3s;
}
.card__reference:hover {
  bord.........完整代码请登录后点击上方下载按钮下载查看

网友评论0