hello, can someone give me the code for a sliding carousel announcement bar? would be much appreciated, thanks!
yes I know, can you give me the code and tell me where to put it?
I have done a similar effect for the Debut theme. By adding the below CSS in your assets/theme.css file you can get a rollover effect.
.announcement-bar {
height: 50px;
overflow: hidden;
position: relative;
}
.announcement-bar p{
position: absolute;
width: 100%;
height: 100%;
margin: 0;
text-align: center;
/* Starting position */
-moz-transform:translateX(100%);
-webkit-transform:translateX(100%);
transform:translateX(100%);
/* Apply animation to this element */
-moz-animation: example1 25s linear infinite;
-webkit-animation: example1 25s linear infinite;
animation: example1 25s linear infinite;
}
/* Move it (define the animation) */
@-moz-keyframes example1 {
0% { -moz-transform: translateX(100%); }
100% { -moz-transform: translateX(-100%); }
}
@-webkit-keyframes example1 {
0% { -webkit-transform: translateX(100%); }
100% { -webkit-transform: translateX(-100%); }
}
@keyframes example1 {
0% {
-moz-transform: translateX(100%); /* Firefox bug fix */
-webkit-transform: translateX(100%); /* Firefox bug fix */
transform: translateX(100%);
}
100% {
-moz-transform: translateX(-100%); /* Firefox bug fix */
-webkit-transform: translateX(-100%); /* Firefox bug fix */
transform: translateX(-100%);
}
}
Thanks!
Hey,
We wanted something similar & aim at having a slider marque on product or collection page. Will it work? Our store is built on Impulse Theme / aestheticnation.co.in
Hello @ExoticSouls ,
Could you share your store URL, so we can check the issue on our end and let you know the solution?
Regards,
CedCommerce
I only have theme.liquid, im using craft theme 5.0.1
password ( blackfriday22 )