Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Mobile Menu animation not working correctly

Mobile Menu animation not working correctly

Scheduled Pinned Locked Moved General Discussion
11 Posts 3 Posters 253 Views
  • 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.
  • S Offline
    S Offline
    srg
    wrote on last edited by
    #1

    Hello, I'm building my studio portfolio using Lay Theme and I've been ejoying the system so far. However I'm experiencing an issue with the Mobile Menu sliding animation. I'm using menu style 3 that slides from the top, and i've activated the "do Animation" option but when I invoke the menu if the site is loading still loadint contents the animation will not work, the menu just appear without transition. It's only when the page has been completely loadaded that the animation begins to work. So it's confusing if somene click the menu icon when first arriving to the site and the contents are not fully loaded.

    The website is: https://www.awayo.studio

    Is there anything I can do to fix this issue? I'm using mobile Safari, iOS 14, iPhone 11 Pro.

    Thanks in advance.

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by Richard
      #2

      Dear @srg

      I had a thought if you add the specific transition CSS that you need to your <header> so that it loads early on page load

      <style>
      @media (max-width: 650px)
      nav.laynav.mobile-nav {
          -webkit-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
          -o-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
          transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
      }
      </style>
      

      Added to 'Custom <head> content' in 'Lay Options - Custom CSS & HTML

      Let me know if that solves it! :)

      Best
      Richard

      S 3 Replies Last reply
      0
      • RichardR Richard

        Dear @srg

        I had a thought if you add the specific transition CSS that you need to your <header> so that it loads early on page load

        <style>
        @media (max-width: 650px)
        nav.laynav.mobile-nav {
            -webkit-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
            -o-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
            transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
        }
        </style>
        

        Added to 'Custom <head> content' in 'Lay Options - Custom CSS & HTML

        Let me know if that solves it! :)

        Best
        Richard

        S Offline
        S Offline
        srg
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • S Offline
          S Offline
          srg
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • RichardR Richard

            Dear @srg

            I had a thought if you add the specific transition CSS that you need to your <header> so that it loads early on page load

            <style>
            @media (max-width: 650px)
            nav.laynav.mobile-nav {
                -webkit-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
                -o-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
                transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
            }
            </style>
            

            Added to 'Custom <head> content' in 'Lay Options - Custom CSS & HTML

            Let me know if that solves it! :)

            Best
            Richard

            S Offline
            S Offline
            srg
            wrote on last edited by
            #5

            Dear @Richard-K,

            Thank's for you help. Unfortunately I added the code and it didn't fix the issue.
            If I click the menu icon in my website, the sliding animation doesn't work until about 20 seconds after loading the page.

            1 Reply Last reply
            0
            • RichardR Richard

              Dear @srg

              I had a thought if you add the specific transition CSS that you need to your <header> so that it loads early on page load

              <style>
              @media (max-width: 650px)
              nav.laynav.mobile-nav {
                  -webkit-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
                  -o-transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
                  transition: height 500ms cubic-bezier(0.52, 0.16, 0.24, 1);
              }
              </style>
              

              Added to 'Custom <head> content' in 'Lay Options - Custom CSS & HTML

              Let me know if that solves it! :)

              Best
              Richard

              S Offline
              S Offline
              srg
              wrote on last edited by
              #6

              Dear @Richard-K do you have an idea of what may be causing this transition delay? Is there anything I can do to fix it? Thanks.

              1 Reply Last reply
              0
              • RichardR Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on last edited by
                #7

                Dear @srg

                Will forward this to make sure you get the right Answer! :)

                Best wishes and thank you for using Lay Theme, have a wonderful day and talk soon

                Sincerely
                Richard

                S 1 Reply Last reply
                0
                • RichardR Richard

                  Dear @srg

                  Will forward this to make sure you get the right Answer! :)

                  Best wishes and thank you for using Lay Theme, have a wonderful day and talk soon

                  Sincerely
                  Richard

                  S Offline
                  S Offline
                  srg
                  wrote on last edited by
                  #8

                  Thank you @Richard-K. I’m waiting for a solution before I officially launch the website.

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    hey looking into this now, sorry for the wait

                    1 Reply Last reply
                    0
                    • arminunruhA Offline
                      arminunruhA Offline
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #10

                      ok i will release an update later today that improves this!

                      S 1 Reply Last reply
                      0
                      • arminunruhA arminunruh

                        ok i will release an update later today that improves this!

                        S Offline
                        S Offline
                        srg
                        wrote on last edited by
                        #11

                        Thank you @arminunruh
                        It’s working correctly now

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        I also code custom websites or custom Lay features.
                        💿 Email me here: 💿
                        info@laytheme.com

                        Before you post:
                        1. When using a WordPress Cache plugin, disable it or clear your cache.
                        2. Update Lay Theme and all Lay Theme Addons
                        3. Disable all Plugins
                        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                        This often solves issues you might run into

                        When you post:
                        1. Post a link to where the problem is
                        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                        Online Users
                        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                        laytheme.com
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Search