File size: 4,276 Bytes
98c641a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
  <style>body {
  background: #000;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 300px; }

.force_field .sword {
  transform-style: preserve-3d;
  animation: rotate 8000ms linear infinite; }
  .force_field .sword .grip {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 30px;
    background: #fff;
    transform-style: preserve-3d;
    transform: translateX(-50%) translateY(10px);
    border-radius: 0 0 99px 99px; }
    .force_field .sword .grip::before {
      content: '';
      position: absolute;
      width: 6px;
      height: 30px;
      background: #aaa;
      transform: rotateY(-45deg);
      border-radius: 0 0 99px 99px; }
    .force_field .sword .grip::after {
      content: '';
      position: absolute;
      width: 6px;
      height: 30px;
      background: #ddd;
      transform: rotateY(45deg);
      border-radius: 0 0 99px 99px; }
  .force_field .sword .beam {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 160px;
    background: rgba(150, 150, 255, 0.8);
    transform-style: preserve-3d;
    transform: translateX(-50%) translateY(-23px);
    border-radius: 99px 99px 0 0;
    box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.7), -10px -5px 60px 5px #0064ff, -50px 15px 100px 10px rgba(0, 100, 255, 0.7);
    animation: mainBeam 10000ms ease-in-out infinite alternate; }
    .force_field .sword .beam::before {
      content: '';
      position: absolute;
      width: 6px;
      height: 160px;
      background: rgba(50, 100, 255, 0.8);
      transform: rotateY(-45deg);
      border-radius: 99px 99px 0 0;
      box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.7);
      animation: subBeam 10000ms ease-in-out infinite alternate; }
    .force_field .sword .beam::after {
      content: '';
      position: absolute;
      width: 6px;
      height: 160px;
      background: rgba(50, 100, 255, 0.8);
      transform: rotateY(45deg);
      border-radius: 99px 99px 0 0;
      box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.7);
      animation: subBeam 10000ms ease-in-out infinite alternate; }

@keyframes rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% {
    transform: rotateX(360deg) rotateY(1080deg) rotateZ(2160deg); } }

@keyframes mainBeam {
  0% {
    background: rgba(150, 150, 255, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.7), -10px -5px 60px 5px #0064ff, -50px 15px 100px 10px rgba(0, 100, 255, 0.7); }
  20% {
    background: rgba(150, 150, 255, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.7), -10px -5px 60px 5px #0064ff, -50px 15px 100px 10px rgba(0, 100, 255, 0.7); }
  30% {
    background: rgba(150, 255, 150, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 255, 100, 0.7), -10px -5px 60px 5px #00ff64, -50px 15px 100px 10px rgba(0, 255, 100, 0.7); }
  70% {
    background: rgba(150, 255, 150, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 255, 100, 0.7), -10px -5px 60px 5px #00ff64, -50px 15px 100px 10px rgba(0, 255, 100, 0.7); }
  80% {
    background: rgba(250, 150, 150, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(255, 0, 50, 0.7), -10px -5px 60px 5px #ff0032, -50px 15px 100px 10px rgba(255, 0, 50, 0.7); }
  100% {
    background: rgba(250, 150, 150, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(255, 0, 50, 0.7), -10px -5px 60px 5px #ff0032, -50px 15px 100px 10px rgba(255, 0, 50, 0.7); } }

@keyframes subBeam {
  0% {
    background: rgba(50, 100, 255, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.5); }
  20% {
    background: rgba(50, 100, 255, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 100, 255, 0.5); }
  30% {
    background: rgba(50, 255, 100, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 255, 100, 0.5); }
  70% {
    background: rgba(50, 255, 100, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(0, 255, 100, 0.5); }
  80% {
    background: rgba(255, 100, 50, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(255, 0, 50, 0.5); }
  100% {
    background: rgba(255, 100, 50, 0.8);
    box-shadow: 0 -5px 30px 5px rgba(255, 0, 50, 0.5); } }
</style>
</head>
<body>
  <div class="force_field"><div class="sword"><div class="grip"></div><div class="beam"></div></div></div>
  <script></script>
</body>
</html>