New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glide__slides container width and translate3d values much too large #654
Comments
I have the same problem with NextJS |
Hi, I had the same issue. Hope that helps, |
Hi, I am having the same issue. Has anyone else figured out the root cause of this issue? |
Found a neat solution: https://stackoverflow.com/questions/77563446/glidejs-renders-slides-too-far-off-screen/77565456#77565456 you just need to add I hope this helps. |
Not sure if I was having the same problem, it seems like it, but I had an erroneous |
I am working if Vue3 using the composition API and the <script setup> tag. I create the HTML structure for the slides and add the content. In the <script setup> portion of the component, I import the Glide library like so, import Glide from '@glidejs/glide', then use the onMounted lifecycle hook to instantiate a new slider like so, onMounted(() => { new Glide('.glide').mount() }).
The issue is that as soon as I mount the slider, the width of the '.glide__slides' elmeent is set to an inline value of 9858px, which pushes everythign WAY outside of the viewport. I don't know how to fix this. Can somebody help?
Below is a simplified version of the code in my component. I have also attached screenshots of the dev tools for the element and inline styles, as well as screen shots of the website. Thank you!
The text was updated successfully, but these errors were encountered: