質問するログイン新規登録

質問編集履歴

2

animate.caaを追加

2020/01/05 02:35

投稿

rikue
rikue

スコア6

title CHANGED
File without changes
body CHANGED
@@ -63,4 +63,52 @@
63
63
  </html>
64
64
  ```
65
65
 
66
+ ```animate.css
67
+ .animate-box {
68
+ opacity: 0;
69
+ }
70
+
71
+ .animated {
72
+ -webkit-animation-duration: 1s;
73
+ animation-duration: 1s;
74
+ -webkit-animation-fill-mode: both;
75
+ animation-fill-mode: both;
76
+ }
77
+
78
+ @keyframes fadeIn {
79
+ from {
80
+ opacity: 0;
81
+ }
82
+
83
+ to {
84
+ opacity: 1;
85
+ }
86
+ }
87
+
88
+ .fadeIn {
89
+ -webkit-animation-name: fadeIn;
90
+ animation-name: fadeIn;
91
+ }
92
+ @keyframes fadeInRight {
93
+ from {
94
+ opacity: 0;
95
+ /*-webkit-transform: translate3d(100%, 0, 0);
96
+ transform: translate3d(100%, 0, 0);*/
97
+ -webkit-transform: translate3d(50px, 0, 0);
98
+ transform: translate3d(50px, 0, 0);
99
+ }
100
+
101
+ to {
102
+ opacity: 1;
103
+ -webkit-transform: none;
104
+ transform: none;
105
+ }
106
+ }
107
+
108
+ .fadeInRight {
109
+ -webkit-animation-name: fadeInRight;
110
+ animation-name: fadeInRight;
111
+ }
112
+ ```
113
+
66
114
  googleで調べてみましたが解決方法を見つけれませんでした。

1

画像を追加しました

2020/01/05 02:35

投稿

rikue
rikue

スコア6

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,8 @@
1
1
  waypoint.js、animate.cssを使いフェードインを試してみたのですが、ブラウザで実行したときブラウザ下部に一時的にバーが出現しフェードイン後に元に戻るといった挙動をしていました。
2
2
  このような挙動をなくす方法がありましたら教えていただきたいです。
3
3
 
4
+ ![その場面のスクリーンショット](2a2fbaeec768de7e44089c88604edad4.png)
5
+
4
6
  ```HTML
5
7
  <!DOCTYPE html>
6
8
  <html lang="ja">