fade in out css

This commit is contained in:
troy
2022-03-12 22:48:51 +01:00
parent 768e1bb464
commit a7c3f4dd02
5 changed files with 41 additions and 43 deletions

10
fade.css Normal file
View File

@@ -0,0 +1,10 @@
.fadeable {
opacity: 0;
margin-top: -30px;
transition: margin-top 0.2s,opacity 0.2s;
}
.fadeable.visible {
opacity: 1;
margin-top: 0;
}