fall_snow 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/app/assets/stylesheets/fall_snow/application.css +108 -0
- data/lib/fall_snow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87aa4c4e68886f1f9600753aa0db6bd5973c7b1
|
4
|
+
data.tar.gz: 91adbfc91d86cf5173447e20f5d2c3586f1c584c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f612d5cf875e3d47ab0f6b4e25ffde9bec1d4265f6db2613e0cb53d8cc9d68589b8e695be26469c607fdb75d8addc8b87b312b8f344ef05cdea0979e524683c6
|
7
|
+
data.tar.gz: 608189e81fad950ef3c15556d213491c64d117217722368fd3f34dffca7aac09e1619e732644f111a920f30e53e44949c4513a19b74bb3d7f1a2be4a3a86f5e9
|
data/README.md
CHANGED
@@ -16,10 +16,20 @@ And then execute:
|
|
16
16
|
$ bundle
|
17
17
|
```
|
18
18
|
|
19
|
-
|
19
|
+
style.css
|
20
|
+
```style.css
|
21
|
+
@import 'fall_snow/style.css';
|
22
|
+
```
|
23
|
+
|
24
|
+
view_file
|
25
|
+
```view_file
|
26
|
+
<%= fall_snow %>
|
27
|
+
```
|
28
|
+
|
29
|
+
<!-- Or install it yourself as:
|
20
30
|
```bash
|
21
31
|
$ gem install fall_snow
|
22
|
-
```
|
32
|
+
``` -->
|
23
33
|
|
24
34
|
## Contributing
|
25
35
|
Contribution directions go here.
|
@@ -13,3 +13,111 @@
|
|
13
13
|
*= require_tree .
|
14
14
|
*= require_self
|
15
15
|
*/
|
16
|
+
|
17
|
+
/*動かす前段階のアニメーション*/
|
18
|
+
section .inner div {
|
19
|
+
animation-fill-mode: forwards;
|
20
|
+
animation-iteration-count: infinite;
|
21
|
+
animation-name: Drop;
|
22
|
+
animation-timing-function: linear;
|
23
|
+
opacity: 0;
|
24
|
+
transform-origin: 0px 0px;
|
25
|
+
height: 100%:
|
26
|
+
}
|
27
|
+
|
28
|
+
/*背景の設定*/
|
29
|
+
section#snow {
|
30
|
+
background: #142744;
|
31
|
+
overflow: hidden;
|
32
|
+
width: 100%;
|
33
|
+
height: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
#snow .inner {
|
37
|
+
height: 100%;
|
38
|
+
width: 100%;
|
39
|
+
}
|
40
|
+
/*雪の設定*/
|
41
|
+
#snow .inner div {
|
42
|
+
background: #fff;
|
43
|
+
border-radius: 4px;
|
44
|
+
display: block;
|
45
|
+
height: 8px;
|
46
|
+
position: absolute;
|
47
|
+
width: 8px;
|
48
|
+
}
|
49
|
+
|
50
|
+
/*いくつかランダムに大きさを変える*/
|
51
|
+
#snow .inner div.snowflake1,
|
52
|
+
#snow .inner div.snowflake2,
|
53
|
+
#snow .inner div.snowflake5,
|
54
|
+
#snow .inner div.snowflake8 {
|
55
|
+
background-size: 5px 6px;
|
56
|
+
}
|
57
|
+
|
58
|
+
/*雪をどの辺りに表示するか*/
|
59
|
+
.snowflake1 {
|
60
|
+
animation-duration: 2.4s;
|
61
|
+
left: 15%;
|
62
|
+
}
|
63
|
+
|
64
|
+
.snowflake2 {
|
65
|
+
animation-delay: 0.3s;
|
66
|
+
animation-duration: 2.7s;
|
67
|
+
left: 19%;
|
68
|
+
}
|
69
|
+
|
70
|
+
.snowflake3 {
|
71
|
+
animation-delay: 0.5s;
|
72
|
+
animation-duration: 2.9s;
|
73
|
+
left: 28%;
|
74
|
+
}
|
75
|
+
|
76
|
+
.snowflake4 {
|
77
|
+
animation-delay: 0s;
|
78
|
+
animation-duration: 2.6s;
|
79
|
+
left: 38%;
|
80
|
+
}
|
81
|
+
|
82
|
+
.snowflake5 {
|
83
|
+
animation-delay: 1s;
|
84
|
+
animation-duration: 2.6s;
|
85
|
+
left: 50%;
|
86
|
+
}
|
87
|
+
|
88
|
+
.snowflake6 {
|
89
|
+
animation-delay: 1.2s;
|
90
|
+
animation-duration: 2.2s;
|
91
|
+
left: 60%;
|
92
|
+
}
|
93
|
+
|
94
|
+
.snowflake7 {
|
95
|
+
animation-delay: 1.2s;
|
96
|
+
animation-duration: 2.7s;
|
97
|
+
left: 70%;
|
98
|
+
}
|
99
|
+
|
100
|
+
.snowflake8 {
|
101
|
+
animation-delay: 1.4s;
|
102
|
+
animation-duration: 2.9s;
|
103
|
+
left: 85%;
|
104
|
+
}
|
105
|
+
|
106
|
+
/*アニメーションの設定*/
|
107
|
+
@keyframes Drop {
|
108
|
+
0% {
|
109
|
+
opacity: 0;
|
110
|
+
transform: translateY(0px);
|
111
|
+
}
|
112
|
+
|
113
|
+
50% {
|
114
|
+
opacity: 1;
|
115
|
+
transform: translateY(200px);
|
116
|
+
}
|
117
|
+
|
118
|
+
100% {
|
119
|
+
opacity: 0.3;
|
120
|
+
transform: translateY(400px);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
data/lib/fall_snow/version.rb
CHANGED