mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-22 02:41:23 +02:00
Add carousel right cutoff by default
Prevents it from fading in when the page loads
This commit is contained in:
parent
48d4d4e966
commit
7e05f8a5eb
@ -35,6 +35,7 @@ function setupCarousels() {
|
|||||||
|
|
||||||
for (let i = 0; i < carouselElements.length; i++) {
|
for (let i = 0; i < carouselElements.length; i++) {
|
||||||
const carousel = carouselElements[i];
|
const carousel = carouselElements[i];
|
||||||
|
carousel.classList.add("show-right-cutoff");
|
||||||
const itemsContainer = carousel.getElementsByClassName("carousel-items-container")[0];
|
const itemsContainer = carousel.getElementsByClassName("carousel-items-container")[0];
|
||||||
|
|
||||||
const determineSideCutoffs = () => {
|
const determineSideCutoffs = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user