File size: 4,984 Bytes
0f3a791
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
  <style>body {
  background-color:#002129;
  overflow: hidden;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
.container{
  position:absolute;
  width:100%;
  height:100%;
}

svg{
  width:100%;
  height:100%;
  visibility:hidden;
 
}

</style>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js"></script>
</head>
<body>
  <div class="container">
  <svg version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px"  viewBox="0 0 600 600" enable-background="new 0 0 600 600" xml:space="preserve">
<defs>
 <filter id="goo" color-interpolation-filters="sRGB">
        <feGaussianBlur in="SourceGraphic" stdDeviation="8" result="blur" />
        <feColorMatrix in="blur" mode="matrix" values="1 0.3 0 0 0  0 1 0.3 0 0  0 0 1 0 0  0 0 0 25 -20" result="cm" />

      </filter>  
  
</defs>
<g id="rectGroup" filter="url(#goo)">
	<rect x="202.3" y="472" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="472" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="472" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="472" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="472" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="472" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="472" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="405" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="405" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="405" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="405" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="405" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="405" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="405" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="337" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="337" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="337" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="337" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="337" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="337" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="337" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="270" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="270" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="270" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="270" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="270" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="270" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="270" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="202" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="202" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="202" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="202" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="202" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="202" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="202" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="135" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="135" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="135" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="135" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="135" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="135" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="135" fill="#5194C1" width="58" height="58"/>
	<rect x="471" y="67" fill="#5194C1" width="58" height="58"/>
	<rect x="202.3" y="67" fill="#69B29F" width="58" height="58"/>
	<rect x="270" y="67" fill="#69B29F" width="58" height="58"/>
	<rect x="337" y="67" fill="#69B29F" width="58" height="58"/>
	<rect x="403.8" y="67" fill="#5194C1" width="58" height="58"/>
	<rect x="68" y="67" fill="#5194C1" width="58" height="58"/>
	<rect x="135" y="67" fill="#5194C1" width="58" height="58"/>
</g>
    
</svg>
</div>
  <script>var xmlns = "http://www.w3.org/2000/svg",
  select = function(s) {
    return document.querySelector(s);
  },
  selectAll = function(s) {
    return document.querySelectorAll(s);
  },
  container = select('.container')


//center the container cos it's pretty an' that
TweenMax.set(container, {
  position: 'absolute',
  top: '50%',
  left: '50%',
  xPercent: -50,
  yPercent: -50
})
TweenMax.set('svg', {
  visibility:'visible'
})


var tl = new TimelineMax();
tl.staggerTo('#rectGroup *',3, {
  rotation:90,
  ease:Power1.easeInOut,
  transformOrigin:'50% 50%',
  repeat:-1,
  yoyo:true,
  fill:"hsl(+=360, +=60%, +=0%)"
},2.6)
tl.seek(250);

/*var colourTl = new TimelineMax();
colourTl.staggerTo('rect',19, {
  repeat:-1,
  yoyo:true,
  fill:"hsl(+=360, +=0%, -=0%)"
},3)

tl.add(colourTl,0)*/

</script>
</body>
</html>