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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d753abd6d23251d16e4f31e425ec8b14a0e6e5c
4
- data.tar.gz: d25c40d9ac4a7a688619b37e1479198031772fdb
3
+ metadata.gz: b87aa4c4e68886f1f9600753aa0db6bd5973c7b1
4
+ data.tar.gz: 91adbfc91d86cf5173447e20f5d2c3586f1c584c
5
5
  SHA512:
6
- metadata.gz: 27a9ae74dfb84758ad5984e054e02ac1af281777066b71804aef3ac5fe51224b3bcc9454533abe5bb0e88952c7a07d4414c60c313cd1b40e8827990c5593a572
7
- data.tar.gz: 9b7ee0826791f05a016b444ff5ba42be8a5dd36a478d689b064d85ce733e28098fc56104c03f3952bd164c0dedcc091e1045b54f5f8f626b7398a1d7b20a524e
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
- Or install it yourself as:
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
+
@@ -1,3 +1,3 @@
1
1
  module FallSnow
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fall_snow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tatsukichi