Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kailasnadh790 committed Dec 14, 2023
1 parent 610c1aa commit 927c10b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cigaradvisor/blocks/carousel/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
transition: transform 3000ms ease 0ms;
}

.carousel.block a picture {
display: flex;
}

.carousel.block a picture > img{
flex-grow: 1;
}

.carousel.block>div::-webkit-scrollbar {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion cigaradvisor/blocks/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { decorateIcons } from '../../scripts/aem.js';
import { isExternal } from '../../scripts/scripts.js';

function setAutoScroll(moveSlides, slidesWrapper) {
// Set interval for auto-scrolling (change slide every 3 seconds)
let interval;
setTimeout(() => {
interval = setInterval(() => {
Expand Down Expand Up @@ -42,6 +41,7 @@ function createButtons(moveSlides) {
/**
* Generic carousel block, which can be used for any content or blocks.
* Each row is a slide.
* left column is image and right column is the link.
* @param block
*/
export default async function decorate(block) {
Expand Down

0 comments on commit 927c10b

Please sign in to comment.