219 questions
0
votes
0
answers
27
views
Nav On Click - Previous + Next
Apologize in advance as I'm inexperienced to web coding.
I have a slideshow on my website where I'm hoping to have the following:
Clicking on left side of window will go to previous slide
Clicking on ...
0
votes
0
answers
45
views
Flickity.js clicks the link when dragging
So I've created a slider using Flickity, and it works fine, but my slides are links out of necessity. The problem arises when the draggable option is enabled. When I click and drag, instead of just ...
0
votes
1
answer
202
views
flickity: how to use contain: true with wraparound
I have an image carousel, I want the carousel start with the first image aligned to the left using contain:true but at the same time I want to be able to use wrapAround:true so that it creates a loop.
...
0
votes
1
answer
266
views
Flickity js | Images keep overlapping one above another until resize screen
I am trying to make a dynamic Flickity slider so that when you click on the template image, it opens up a slider.
I have an issue with the images that are overlapping one over another so the slider ...
0
votes
1
answer
398
views
changing flickity styling through js
I have a flickity Issue with accessing the styling, in my case, of the indicator dots, through js. I want the dots to be colored from an array (in my project it should be a dynamic array but for the ...
0
votes
1
answer
289
views
Flickity doesn't load on a shopify section
I am trying to modify a shopify section so that it's images are a carousell with flickity but for some reason I can't get it to load. I want to input it via html so that i can modify settings ...
0
votes
1
answer
510
views
flickity slider ref undefined
So I have this react flickity slider component.
On first render the flickityRef returns undefined. If i change something in the file and the dev server updates the component. The flickityRef gets the ...
0
votes
0
answers
325
views
display none on flickity-slides not working as expected
I would like to know if adding the .is-visible and .is-hidden dynamically still makes the added classes visible to flickity.
I dynamically add using $('[data-thumbnail-color],[data-image-color]')....
3
votes
0
answers
135
views
Get Flickity instance from slider initialized in JS
I'm trying to access a Flickity instance with JS that has already been initialized in other JS code which I don't have access to. I have tried using Flickity.data('.slider'), as well as just creating ...
0
votes
1
answer
620
views
How to (re)initialise flickity carousel inside accordion items?
I am trying to get one flickity carousel to work in each of my accordion items and my lack of knowledge in js gets me unfortunately to a dead end.
What happens is that I see my carousels broken (not ...
0
votes
1
answer
124
views
is-selected class in flickity can't detected in javascript
I'm creating slider using flickity and what I'm trying to do is when slide is selected the background color of body change (each slide has a specific color.. the problem is (is-selected) class can't ...
2
votes
2
answers
536
views
Flickity AsNavFor producing error in the console: "Uncaught TypeError: Cannot read properties of undefined (reading 'create')"
i'm using flickity as the instructions, but got this error warning in the console
anybody know how to solve this?
Here is the current bundle package
<script src="https://unpkg.com/flickity-as-...
0
votes
1
answer
187
views
change image property when is-Selected in flickity
I've been trying to get the image filter change from grayscale(1) to grayscale(0) when it's selected but it doesn't work for me :( The following CSS is what I have so far.
.main-carousel img {
...
0
votes
1
answer
24
views
Need to target a div in js but query selector giving null even the div is present on inspect but that is coming from a jquery library I am using
I am trying to target a div in plain javascript code but querySelector is giving null because it is not present in hard coded i.e. my written code in HTML but it is coming from flickity plugin but I ...
-1
votes
1
answer
152
views
If i not using v-for in flickity then carousel is working fine but if used then all item align verticaly
When i am using carousel without v-for it is working fine but when i am using with v-for it align item vertically. I am putting code below:
<div class="main-carousel">
<div class=&...
0
votes
0
answers
861
views
Flickity slider issue
Hi i'm using the flickity slider but there is a problem when i drag the items of the carousel: when i drag and move the slider and release it the cells are auto-aligned and the result, for me, is very ...
1
vote
1
answer
1k
views
Vertically Centering All Photos on Flickity Slider
Building out a flickity carousel to look like this and having some issues w/ spacing on my CodePen.
codepen
looks good but want to make spacing between slides less and also the spacing is fairly equal ...
1
vote
2
answers
477
views
Flickity carousel doesn't work if used (ngfor)
I'm using a carousel called flickity
when I'm using static data the carousel works normally
normal behavior code:
<div class="carousel" data-flickity='{"autoPlay": "...
1
vote
1
answer
2k
views
Flickity Slider – Slides out of alignment
I'm struggling to work out why the slides within a Flickity Slider are out of alignment?
Gif of slider being out of position
Technically the slider is working. So this must be either a option I haven'...
3
votes
2
answers
2k
views
Flickity-fade slider not working after following the installation docs from github; flickity just run like the regular slider
I'm following this flickity slide fade docs
FlickityFade Installation
Here is the css cdn package
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css&...
2
votes
1
answer
364
views
Add class only on first carousel-cell (flickity)
i would have the class "opacity" inserted only at the first "carousel-cell".
For the rest in the loop, they should not be there.
<div class="main-carousel">
...
1
vote
0
answers
137
views
Flickity images wont load properly when the image sources are fetched via an http request using axios. (React.js)
I was able to get Flickity working as expected. But for some reason when I made it to where the image sources are fetched from an external database, the images stopped loading properly and broke ...
0
votes
0
answers
346
views
Flickity sync and nav hover event
I'm looking to change the main carousel on the hover event of a nav item, using asNavFor.
I am a beginner with jQuery and I can't get the code below to work with my installation. I don't know how to ...
2
votes
0
answers
1k
views
Flickity transform issue
Before the holidays my client's site was working fine with the Flickity carousel. But after returning it has completely crashed, but it starts working when I resize the window.
I had a look at the ...
1
vote
0
answers
878
views
How to recreate this unusual 3D flickity carousel style
I've been searching for a way that I can figure out (and learn) how to recreate this 3D carousel slider style used in the Salient theme (as seen in the "What they've said about us" and "...
0
votes
2
answers
4k
views
Flickity carousel doesn't work when <div> are generated with js
i have found a carousel based on Flickity, you can check it here:
https://codepen.io/atelierbram/pen/LRkAxQ thanks to atelierbram
now i want to generate the containing the images with JS and i made ...
2
votes
0
answers
479
views
Flickity on change event not firing in Vue component
I'm using Flickity for a carousel component in a Nuxt / Vue project. I have created a custom page dots / navigation for the carousel and it works fine except when I drag / swipe the carousel the ...
2
votes
2
answers
3k
views
Nuxt app throwing "Cannot read properties of undefined" when child component renders with a carousel by Flickity
I am trying to link my own custom buttons to a flickity carousel in a nuxt application. My parent component set the default value for the prop direction to left.
<CarouselBase class="w-screen ...
2
votes
1
answer
710
views
Custom buttons throwing "Flickity is not defined" in Nuxt application using carousel
I am trying to wire my own custom buttons to a flickity carousel in a nuxt application. In my carousel component I have this code
<template>
<ClientOnly>
<Flickity
...
1
vote
3
answers
855
views
Nuxt application throwing error message when using Flickity
I am trying to implement a carousel in a Nuxt application. This is my package.json
"dependencies": {
"@nuxtjs/i18n": "^7.0.3",
"core-js": "^3.15.1&...
2
votes
1
answer
988
views
Flickity Slider Animation and Gsap
The slider I am building have the active slider bigger than the others. I managed to make it work without the animation with flkty.reposition(). However, I am trying now to add the animation where the ...
0
votes
1
answer
915
views
Flickity carousel is overlapping dropdown menu. How can I fix this?
I'm building a website with Flickity image carousels on the homepage. It's more customized than a regular nav menu, and now I'm starting to question my choices in life.
The dropdown menus I crafted ...
4
votes
1
answer
549
views
How can I get the number/actual number of slides in a slider wordpress
I am trying to show the actual number / total number of slides shown, in a custom carousel script for a wpbakery widget in wordpress.
The original code is using some flickity options, and I am using a ...
0
votes
1
answer
327
views
flickity groupCells functionality in react based carousel
Can you please share a React carousel library that has same functionality as flickity's groupCells, client requirement is to differentiate active slides styles while still having inactive (satellites) ...
0
votes
0
answers
835
views
Flickity.js before change event
Is there a way to execute code just before the slide is changed in Flickity.js? In my test case you can see, that it returns location.hash of changed slide. For example, I am swiping #page1 slide to #...
1
vote
0
answers
578
views
Flickity - Flexbox Issue
I have an issue with my images within flickity slider with flexbox using @media only screen and (min-width: 1000px)
It seems it applies the flexbox width 50% which it should on the flickity slider/...
1
vote
0
answers
220
views
OWL Carousel or Flickity? Which one is better?
I've been searching online to which library to use, If there's any difference, maybe one is better for perfomance but offers fewer options.
I've found some information but didn't go deep into these ...
0
votes
1
answer
618
views
Flickity Events + Vue3 + TypeScript: Error - this$refs.flickity.on is not a function
I've created a custom Flickity.vue object for Vue 3 and TypeScript support, following the accepted answer here.
When I try to listen for events on my flickity carousel however, i'm plagued by runtime ...
0
votes
1
answer
1k
views
Flickity CSS Styles not Being Applied
Pretty simple issue, I think it may be related to this question but in Vue instead of Angular.
The CSS styling I try to apply to my Flickity carousel doesn't render for my Vue 3 app. In the IDE the ...
0
votes
1
answer
903
views
TypeScript + Vue 3 - ReferenceError: variable is not defined
I declare a variable to have type any at the beginning of my <script> and I later reference it in one of my methods in this same <script>. My IDE doesn't complain at all but surprisingly I ...
1
vote
1
answer
3k
views
Flickity API with Vue 3 and Typescript
I've been working with Flickity in my Vue 3 app, and it works fine when I use a hard-coded HTML carousel with static cells. I need to add cells programmatically at runtime, however, and I can't get ...
0
votes
1
answer
695
views
Flickity: Uncaught TypeError: Cannot read property 'querySelectorAll' of null
I have been debugging my js codes for hours, I cannot remove the error. Did I miss anything or added some codes which are incorrect? The error says:
consultationSlider.js:9 Uncaught TypeError: ...
0
votes
2
answers
3k
views
Show "X" number of page dots on Flickity plugin
I using the flickity plugin for a slideshow on my website and I want to show the dots on the image to allow the user to navigate the images.
Here is a link to the plugin https://flickity.metafizzy.co/
...
1
vote
0
answers
358
views
Why my flickity slider made in full CSS need to be manually resize to work?
I have a problem, I use flickity and every time i refresh my page, I have to resize my window for the slider work, and i don't know how to fix it..
I use flickity with the CDN and only in CSS.
I tried ...
1
vote
1
answer
1k
views
Flickity & Swup - destroying flickity
I am trying to destroy and re-load my Flickity slideshow while using Swup for page transitions, and I am not having much luck. This is my js file:
import Swup from 'swup';
var Flickity = require('...
0
votes
1
answer
857
views
Scroll history timeline navigation left or right on click with vanilla JavaScript
I have setup a history timeline using Flickity and HTML/CSS. The core functionality is working as highlighted in the snippet, but I am needing to add "scroll to" functionality to the ...
0
votes
1
answer
2k
views
Flickity doesn't always load (Shopify)
I am using flickity to make carousels in my Shopify store. An odd thing happens when it sometimes does not load. It happens sometimes, not always. I could not find anything in the console to help ...
0
votes
2
answers
476
views
Flickity stops working the moment i use *NgFor
I am trying to use Flickity in an angular app that i am building. Here is the link I am also aware of the ngx-flickity but i do not want this as it isn't production ready.
This code below works
<...
0
votes
1
answer
779
views
How do I remove/hide image container on error
I have been looking here for answers and tried a lot of different things that I found on here but unfortunately none of them have worked 100% for me...
I am using a Flickity image carousel. What I ...
0
votes
1
answer
349
views
I want the text of the carousel to stop moving. How can I do It?
Here is the HTML doc with a carousel :
<html lang="en" dir="ltr">
<head>
<link rel="stylesheet" href="CSS/flickity.css"> // it Could be ...