Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript I need anything slider js units in em

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33442
    DirtyWorld
    Member

    Hi,
    I use the anything slider on multiple size displays with media queries. Now I have some problems with the sizes which will generate from the js because they are in px and not in em. How could I change the output units to em?

    Best regards

    #83407
    Mottie
    Member

    Hi DirtyWorld!

    Maybe your best/easiest solution would be to just set the AnythingSlider option “expand” to true, then modify it’s container size. When that option is true, it automatically expands to fit.

    Here is a demo of it in action (resize the browser window).

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.