Code Monkey home page Code Monkey logo

Comments (6)

rcbyr avatar rcbyr commented on May 12, 2024

Hey @Memphis335,

I forked your codesandbox, update the version to 4.2.1, and fixed the error that happens on ngAfterViewInit() by wrapping the slider initialization with a setTimeout. It seems to work as you wanted to be. Can you confirm that?

Codesandbox Fork

from keen-slider.

rcbyr avatar rcbyr commented on May 12, 2024

I just realized there is a bug in the initial height calculation. Sometimes, I only see the image and not the text. I've fixed that by adding the following to your component.

ngAfterViewChecked() {
    this.slider.resize();
  }

from keen-slider.

Memphis335 avatar Memphis335 commented on May 12, 2024

Hi @rcbyr,

Thank you for your assistance so far but the fixes did not help. I dug a little deeper and found the following :

image

I could not see it due to overflow: hidden, which is expected. The problem seem to be here transform: translate3d(412px, 0px, 0px);.

So it appears that is showing all three just not on the same line.

from keen-slider.

rcbyr avatar rcbyr commented on May 12, 2024

@Memphis335
Ah, now I understand. You didn't import the CSS file. Please, see the installation instructions. You can also copy the content of the CSS file to the place where you want it to be.

from keen-slider.

Memphis335 avatar Memphis335 commented on May 12, 2024

I imported your stylesheet in scss like this (uncommented obviously)
image
which did seem to work.

For completeness sake, I copied your styles to my file directly to no avail:
image,

I also saw in your options that I can pass the class of my slides but that doesn't seem to be doing anything.
image

I have renamed my classes to yours in the stylesheet .keen-slider__slide but now nothing shows.

from keen-slider.

Memphis335 avatar Memphis335 commented on May 12, 2024

It seems to be working now with this.slider.resize() and your slide class on my slides. Thank you!

from keen-slider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.