No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Is possible img inside parallax be responsive?

    Framework
    2
    2
    161
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Erick Amarante last edited by Erick Amarante

      Hello.
      Is possible img inside parallax be responsive?

      This is my code snippet:

       <q-parallax :height="600">
                 <img slot="media" src="../assets/parallax_badge.png"  
                      srcset="../assets/parallax_badge_w_200.png 200w,               
                      ../assets/parallax_badge_w_600.png 600w,
                      ../assets/parallax_badge_w_1000.png 1000w,
                      ../assets/parallax_badge_w_1250.png 1250w"
                      sizes="(max-width: 200px) 200w,
                    (min-width: 400px) and (max-width: 800px) 800w,
                    (min-width: 800px) and (max-width: 1200px) 1250w,
                    (min-width: 1200px) 1600w" > 
      </q-parallax>
      

      Tks.

      1 Reply Last reply Reply Quote 0
      • PeterQF
        PeterQF last edited by PeterQF

        Hi @Erick-Amarante ,

        Have you tried to set a class and then in sass use:

        @media (max-width: XXXpx)
          .parallax
            width: XXXpx
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post