I’m trying to add a scroll down animation to the hero banner of my website from this link Scroll Down Icon Animation (codepen.io)
I wanted to know where to add the code.
A user seeks to add a scroll-down animation to their hero banner on a Dawn theme Shopify store, referencing a CodePen example for the desired effect.
Proposed Solutions:
One respondent recommends hiring an expert if lacking technical experience, noting the code requires customization to work with the specific theme (slideshow.liquid file).
Another provides detailed implementation steps:
sections/image-banner.liquid within the banner__media divassets/base.cssTechnical Details:
The solution includes CSS for a down-arrow element with:
Status: The discussion provides working code but remains open for implementation feedback. Screenshots are included showing exact code placement locations.
I’m trying to add a scroll down animation to the hero banner of my website from this link Scroll Down Icon Animation (codepen.io)
I wanted to know where to add the code.
You can add code to slideshow.liquid file of your theme but it is need customize the code to make it works with your theme. Recommend you hire an expert if you don’t have technical experience.
Hello @devanshvasant
.down-arrow {
position: absolute;
top: calc(100vh - 280px);
left: calc(50% - 14px);
width: 0;
height: 30px;
border: 2px solid;
border-radius: 2px;
animation: jumpInfinite 1.5s infinite;
display: block!important;
z-index: 999999;
color: red;
}
.down-arrow:after {
content: " ";
position: absolute;
top: 12px;
left: -10px;
width: 16px;
height: 16px;
border-bottom: 4px solid;
border-right: 4px solid;
border-radius: 4px;
transform: rotateZ(45deg);
}
@keyframes jumpInfinite {
0% {
margin-top: 0;
}
50% {
margin-top: 20px;
}
100% {
margin-top: 0;
}
}