diff --git a/src/stylesheets/components/_back-to-top.scss b/src/stylesheets/components/_back-to-top.scss
index a3abfe7767..2e55c6049b 100644
--- a/src/stylesheets/components/_back-to-top.scss
+++ b/src/stylesheets/components/_back-to-top.scss
@@ -1,15 +1,10 @@
-
.app-back-to-top {
- display: none;
-
@supports (position: sticky) {
display: inline-block;
- position: -webkit-sticky; // sass-lint:disable-block no-duplicate-properties
position: sticky;
top: govuk-spacing(6);
left: govuk-spacing(6);
margin-bottom: govuk-spacing(6);
- animation: fadeIn .2;
}
> svg {
@@ -20,16 +15,8 @@
}
}
-.app-back-to-top--hidden {
- display: none;
-}
-
-@keyframes fadeIn {
- from {
- opacity: 0;
- }
-
- to {
- opacity: 1;
+@supports (position: sticky) {
+ .js-enabled .app-back-to-top--hidden {
+ display: none;
}
}
diff --git a/views/partials/_subnav.njk b/views/partials/_subnav.njk
index 40157b6f04..6990877f97 100644
--- a/views/partials/_subnav.njk
+++ b/views/partials/_subnav.njk
@@ -32,7 +32,7 @@
{% endfor %}
-
+
Back to top