css剪裁GIF背景图片动画特效

所属分类:其他-动画效果

 12460  99  查看评论 (0)
分享到微信朋友圈
X
css剪裁GIF背景图片动画特效 ie兼容12

css剪裁GIF背景图片动画

这是一款css剪裁GIF背景图片动画特效。该特效利用css的background-clip技术,将gif图片剪裁为文字效果,非常炫酷。

使用方法

 HTML结构

<div class= "wrapper">
  <div class= "text" data-text= "2020">2020</div>
<div>

CSS样式

.wrapper{
  background: #252854;
  width: 100%;
  height:500px;
  border-radius: 5px;
  position: relative;  
}
.text{
  flex: 0 0 100%;
  font-size: 14rem;
  font-weight: 900;
  color: #00000000;
  text-align: center;
  font-family: 'Lato', sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-bottom: 1px solid #d4d7ff;
  border-top: 1px solid #d4d7ff;
  background: url(./img/source.gif);
  background-clip: text;
  -webkit-background-clip: text;
}
   
 .text:after{
   content: attr(data-text);
   -webkit-text-stroke: 1.5px #d4d7ff;
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -49%);
   background: url(./img/source.gif);
   background-clip: text;
   -webkit-background-clip: text;
   background-size: 43%;
 
}
相关插件-动画效果

html5 canvas粒子星空

html5 canvas鼠标跟随粒子星空动画
  动画效果
 74909  737

jQuery雪花飘落

jQuery雪花飘落(pc端及移动端均兼容)
  动画效果
 36750  463

超简单自定义粒子背景动画插件(原创)

这是一个可以自定义粒子背景的插件,可实现全屏,鼠标跟随,自定义坐标三种方式的动画控制,同时也可以使用不同颜色或者不同的图片实现粒子的个性化
  动画效果
 32090  308

HTML5+CSS3音量调节旋转按钮

可以拨动让物体旋转,很不错
  动画效果
 40525  382

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复