自创火影忍者写轮眼效果

运行效果:



三勾玉写轮眼


然后从网上找 到写轮眼图片 切图


勾玉 : xielunyan-01.png



xielunyan-02.png


xielunyan-03.png




HTML:

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<link rel="stylesheet" href="css/xielunyan.css" />

<title></title>

</head>

<body>

<h1>  自创 写轮眼 效果        </h1>

<div class="demo">

<div class="a">

<div class="x"><img src="img/xielunyan-01.png"/></div>

<div class="y"><img src="img/xielunyan-02.png"/></div>

<div class="z"><img src="img/xielunyan-03.png"/></div>

<div class="dot"></div>

</div>

</div>

</body>

</html>


CSS:


* {

padding: 0;

margin: 0;

}

.demo {

position: relative;

margin: 100px auto;

background: red;

width: 200px;

height: 200px;

border-radius: 50%;

}

.a {

position: absolute;

top: 50%;

left: 50%;

width: 140px;

height: 140px;

border: 1px solid #000;

margin: -70px 0 0 -70px;

border-radius: 50%;

animation: zhuan 2s ease infinite;

}

.x {

position: absolute;

width: 10px;

height: 10px;

background: #000;

/* background: url(../img/xielunyan-01.png);*/

left: 50%;

TOP: -5PX;

margin: 0 0 0 -5PX;

}

.x>img {

width: 20px;

height: 30px;

margin: -12px 0 0 0;

}

.y {

position: absolute;

width: 10px;

height: 10px;

background: #000000;

bottom: -5PX;

TOP: 66%;

}

.y>img {

width: 28px;

height: 23px;

margin: 0 0 0 -10px;

}

.z {

position: absolute;

width: 10px;

height: 10px;

background: #000000;

bottom: -5PX;

right: 0PX;

TOP: 66%;

}

.z>img {

width: 28px;

height: 23px;

margin: 0 0 0 -10px;

}

@keyframes zhuan {

from {

transform: rotateZ(-25deg);

opacity: 0;

}

to {

transform: rotateZ(335deg);

opacity: 1;

}

}

.dot {

width: 20px;

height: 20px;

border-radius: 50%;

background: #000000;

position: absolute;

left: 60px;

top: 60px

}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 各种纯css图标 CSS3可以实现很多漂亮的图形,我收集了32种图形,在下面列出。直接用CSS3画出这些图形,要比...
    剑残阅读 9,768评论 0 8
  • 不会用代码框,所以看着有些乱套,,,,html部分 <!DOCTYPE html> 迅雷看看 ...
    这就是个帅气的名字阅读 1,590评论 0 0
  • 1. tab列表折叠效果 html: 能源系统事业部 岗位名称: 工作地点 岗位名...
    lilyping阅读 1,934评论 0 1
  • 1、垂直对齐 如果你用CSS,则你会有困惑:我该怎么垂直对齐容器中的元素?现在,利用CSS3的Transform,...
    kiddings阅读 3,229评论 0 11
  • 从前有一个财主喜欢晚上喝茶,但由于古代科技不发达,刷牙也不像如今这样便捷干净 ,所以他的牙齿慢慢就黑了。黑了之后的...
    叶宁而远阅读 492评论 2 1