From 75deceed14d3e757e09d579692a2bc221bdad696 Mon Sep 17 00:00:00 2001 From: Kybo Date: Sun, 15 Dec 2019 20:39:14 +0100 Subject: [PATCH] adding animation --- Assets/css/css.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Assets/css/css.css b/Assets/css/css.css index 4c4db0b..ada064f 100644 --- a/Assets/css/css.css +++ b/Assets/css/css.css @@ -93,6 +93,12 @@ nav { position: fixed; z-index: 1; width: 100%; + animation: 1s down; +} + +@keyframes down { + 0%{margin-top: -10%} + 100%{margin-top: 0%} } nav a { @@ -143,6 +149,8 @@ nav input[type=text] { /*TOP*/ div#bienvenue{ padding: 4vw; + animation: 1s right; + animation-fill-mode: forwards; } body>#bienvenue>h1 { @@ -151,11 +159,17 @@ body>#bienvenue>h1 { text-align: center; } +@keyframes right{ + 0% {margin-left: -150%} + 100% {margin-left: 0%} +} + body>#bienvenue>h2 { font-size: 2vw; color: lightgrey; text-align: center; } + /*=================*/ /*Slide des promotions*/