diff --git a/css_files/style.css b/css_files/style.css index 9a00e7a..918b4ca 100644 --- a/css_files/style.css +++ b/css_files/style.css @@ -398,9 +398,44 @@ justify-content:center; align-items:center; } + .back-to-top{ + bottom: 2rem; + } } @media(min-width:992px){ .image{ display:block; } } + + .back-to-top { + position: fixed; + right: 2rem; + bottom: 1rem; +} +.hidden { + display: none; + opacity: 0%; + + } +.back-to-top { + position: fixed; + right: 2rem; + bottom: 4rem; + border-radius: 100%; + background: #EB1365; + padding: 0.2rem; + border: none; + cursor: pointer; + opacity: 100%; + transition: opacity 0.5s; + } + .back-to-top-icon { + width: 40px; + height: 40px; + line-height: 40px; + color: #ffd7e9; + } + .back-to-top:hover { + background: black; + } \ No newline at end of file diff --git a/index.html b/index.html index b32e4ed..de91c02 100644 --- a/index.html +++ b/index.html @@ -242,6 +242,21 @@
Women Health
+ @@ -260,6 +275,34 @@
Women Health
loader.classList.add("disappear"); } +