限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

纯CSS实现的逼真眨眼动画特效代码

所属分类: 网页特效-动画效果    2024-01-17 11:30:14

纯CSS实现的逼真眨眼动画特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

纯CSS实现的逼真眨眼动画特效代码(共2个文件)

    • index.html

使用方法

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.15s ease-in;
  background-color: #fc205e;
  height: 100%;
  width: 100%;
  margin: auto;
  margin-top: 2rem;
  width: 287px;
  height: 300px;
  padding: 3rem;
  border-radius: 50px;
}
.box .eyeContainer {
  display: flex;
  width: 80%;
  /* margin-top: 6rem; */
  justify-content: center;
}
.box .eyeContainer .eyeLid {
  text-align: center;
  display: flex;
  background-color: white;
  border-radius: 50% 50% 49% 51%/67% 68% 32% 33%;
  box-shadow: inset -17px -10px 12.5px rgba(0, 0, 0, 0.144);
  -webkit-animation-name: blink;
  -webkit-animation-duration: 15s;
  -webkit-animation-iteration-count: infinite;
  -webkit-transform-origin: 50%;
  animation-play-state: running;
}
.box:hover {
  cursor: help;
}

.eyeLid,
.eyes {
  text-align: center;
  display: flex;
  /* font-size: 0.65em; */
  width: 17rem;
  height: 17rem;
  /* background-color: black; */
}

.eye {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  width: 55%;
  height: 55%;
  background-color: #08090a;
  border-radius: 50%;
  z-index: 8976;
  margin: auto;
  margin-left: 30px;
  margin-top: 70px;
  -webkit-animation-name: eyeball;
  -webkit-animation-duration: 15s;
  -webkit-animation-iteration-count: infinite;
  -webkit-transform-origin: 30%;
  animation-play-state: running;
}
.eye:after {
  /*pupil*/
  --pupil-size: 2rem;
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  width: 3rem;
  height: 3rem;
  background: white;
  border-radius: 50%;
  content: " ";
}

@keyframes blink {
  0% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  10% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  10.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
  }
  11% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  40% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  40.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
  }
  41% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  70% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  70.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
  }
  71% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
  100% {
    -webkit-transform: scaleX(1) scaleY(1);
  }
}
@keyframes eyeball {
  0% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
  10% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
  10.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
    margin-left: 30px;
    margin-top: 64px;
  }
  11% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
  40% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
  40.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
    margin-left: 78px;
    margin-top: 58px;
  }
  41% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 78px;
    margin-top: 62px;
  }
  70% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 78px;
    margin-top: 62px;
  }
  70.5% {
    -webkit-transform: scaleX(1.3) scaleY(0.1);
    margin-left: 30px;
    margin-top: 68px;
  }
  71% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
  100% {
    -webkit-transform: scaleX(1) scaleY(1);
    margin-left: 30px;
    margin-top: 70px;
  }
}

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 动画效果

jquery延时动画特效插件aniAuto

一款用于执行Animate.css动画库,可实现DIV区块动画延时、队列、执行时间、滞后执行、重复执行等动画效果。
  动画效果
 5124  0

jquery掷色子摇骰子动画特效

鼠标点击上面的色子图片,色子随机动画翻滚,停留显示的数字就是点数。
  动画效果
 9499  0

jquery动态的漂流瓶loading加载动画特效

一款空瓶子水面漂浮动画特效,逼真的水位起伏,触发瓶子高低起落,超有创意的动画效果。
  动画效果
 3136  0

jquery鼠标悬停图标导航菜单环形展示分享图标效果代码

一款鼠标click和hover事件触发环形图标菜单,鼠标移出立即收回消失!
  动画效果
 7399  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论