JSDM

HTML

11
 
1
.Lighthouse
2
  .relbox
3
    .head
4
    .headMini
5
    .light
6
    .rayLeft
7
    .rayRight
8
    .row
9
    .rect
10
    .preTube
11
    .tube
!

CSS

x
 
1
absolut 
2
  position absolute
3
  margin auto
4
  top 0
5
  right 0
6
  bottom 0
7
  left 0
8
body
9
  background-color #F9324A
10
.Lighthouse
11
  width 50vw
12
  height 50vh
13
  position absolute
14
  top 0
15
  right 0
16
  bottom 0
17
  left 0
18
  margin auto
19
  transform-style preserve-3d
20
.relbox
21
  position relative
22
  width 100%
23
  height 100%
24
.head
25
  @extends absolut;
26
  top -460px
27
  height 100px
28
  width 160px
29
  border-radius  160px 160px 0 0
30
  background rgba(0, 0, 0, 0.2)
31
  &:before
32
    content ' '
33
    position absolute
34
    left 36px
35
    top 10px
36
    height 100px*0.9
37
    width 160px*0.9
38
    border-radius 160px*0.9 160px*0.9 0 0
39
    background #F9324A
40
    z-index 9
41
.headMini
42
  @extends absolut;
43
  top -568px
44
  height 10px
45
  width 20px
46
  border-radius  20px 20px 0 0
47
  background rgba(0, 0, 0, 0.2)
48
.light
49
  @extends absolut;
50
  top -320px
51
  height 20px
52
  width 20px
53
  background-color #fff
54
  border-radius 50%
55
.rayLeft
56
  @extends absolut;
57
  z-index 99
58
  top -320px
59
  left -400px
60
  width 0
61
  height 0
62
  border-style solid
63
  border-width 50px 0 50px 360px;
64
  border-color transparent transparent transparent rgba(255, 255, 255, 0.25)
65
  animation rayLeft 4s linear 0 infinite
66
.rayRight
67
  @extends absolut;
68
  z-index 99
69
  top -320px
70
  right -400px
71
  width 0
72
  height 0
73
  border-style solid
74
  border-width 50px 360px 50px 0;
75
  border-color transparent rgba(255, 255, 255, 0.25) transparent transparent
76
  animation rayRight 4s linear 0 infinite
77
.row
78
  @extends absolut;
79
  top -260px
80
  background-color #F9324A
81
  width 180px
82
  height 20px
83
  border-radius 50px
84
  &:before
85
    content ' '
86
    position absolute
87
    top 0px
88
    background-color rgba(0, 0, 0, 0.2)
89
    border-radius 50px 0 0 50px
90
    width 50px
91
    height 20px
92
  &:after
93
    content ' '
94
    position absolute
95
    top 0px
96
    left 40px
97
    background-color #F9324A
98
    border-radius 50% 
99
    width 20px
100
    height 20px
101
.rect
102
  @extends absolut;
103
  top -160px
104
  background-color #F9324A
105
  width 160px
106
  height 80px
107
  box-shadow inset 0px 3px 5px -2px rgba(0, 0, 0, 0.85)
108
  background linear-gradient(-45deg, transparent, transparent 37%, #fff 37%, #fff 67%, transparent 67%),
109
  linear-gradient(left, #F9324A, #F9324A)
110
  background-size 200px 436px, 100% 100%, 100% 100%
111
  animation move 2.4s linear 0 infinite
112
  &:before
113
    content ' '
114
    position absolute
115
    top 0px
116
    background-color rgba(0, 0, 0, 0.2)
117
    width 36px
118
    height 80px
119
.preTube
120
  @extends absolut;
121
  height 20px
122
  border-radius 50px
123
  top -70px
124
  background-color #F9324A
125
  width 200px
126
  &:before
127
    content ' '
128
    position absolute
129
    top 0px
130
    background-color rgba(0, 0, 0, 0.2)
131
    border-radius 50px 0 0 50px
132
    width 60px
133
    height 20px
134
  &:after
135
    content ' '
136
    position absolute
137
    top 0px
138
    left 50px
139
    background-color #F9324A
140
    border-radius 50% 
141
    width 20px
142
    height 20px
143
.tube
144
  perspective-origin 25% 75%
145
  @extends absolut;
146
  top 251px
147
  height 400px
148
  width 200px
149
  box-shadow inset 0px 3px 5px -2px rgba(0, 0, 0, 0.85)
150
  background linear-gradient(-45deg, transparent, transparent 37%, #fff 37%, #fff 67%, transparent 67%),
151
  linear-gradient(left, #F9324A, #F9324A)
152
  background-size 200px 436px, 100% 100%, 100% 100%
153
  transform perspective(400px) rotateX(25deg)
154
  animation moveTube 2.4s linear 0 infinite
155
  &:before
156
    content ' '
157
    position absolute
158
    top 0px
159
    background-color rgba(0, 0, 0, 0.2)
160
    width 50px
161
    height 400px
162
163
@keyframes move
164
  0%
165
    background-position 0px 80px, 0 0, 0 0
166
  100%
167
    background-position 0px -356px, 100% 0, 0 0
168
@keyframes moveTube
169
  0%
170
    background-position 0px 0px, 0 0, 0 0
171
  100%
172
    background-position 0px -436px, 100% 0, 0 0
173
@keyframes rayLeft
174
  0%
175
    transform translateX(0px) scale(1, 1)
176
  50%
177
    transform translateX(400px) scale(-1, 1)
178
  100%
179
    transform translateX(0px) scale(1, 1)
180
@keyframes rayRight
181
  0%
182
    transform translateX(0px) scale(1, 1)
183
  50%
184
    transform translateX(-400px) scale(-1, 1)
185
  100%
186
    transform translateX(0px) scale(1, 1)
!
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

8
 
1
/*
2
* This is only draft, i will fix all troubles later (: 
3
*
4
* Inspired by https://dribbble.com/shots/1788738-Lighthouse
5
* 
6
*/
7
8
!
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................