Huzy 11 Odesláno: 27. Červenec, 2016 Share Odesláno: 27. Červenec, 2016 Ahoj, chtěl bych poradit, jak udělat menu, které se změní při scrollu a zafixuje se na topu. Třeba jako tady http://www.justinbiebermusic.com/# P.S. Neposlouchám JB. Link to comment Share on other sites More sharing options...
Fakerko_ 190 Odesláno: 27. Červenec, 2016 Share Odesláno: 27. Červenec, 2016 Přes javascript. Vytvoříš si třídu nebo indetifikátor, který přiřadíš k tomu menu. V javascriptu si pak nastavíš, že po určité vzdálenosti od shora se ti změní třída např. ze static-menu na fixed-menu. Dále je to jen otázka stylování. Link to comment Share on other sites More sharing options...
Huzy 11 Odesláno: 27. Červenec, 2016 Author Share Odesláno: 27. Červenec, 2016 A není pro to nějaký pojem, jak se tomu menu říká? Ať mrknu na nějakej ten JS tuttorial, protože JS je mi cizí :S Link to comment Share on other sites More sharing options...
Fakerko_ 190 Odesláno: 27. Červenec, 2016 Share Odesláno: 27. Červenec, 2016 Zkus hledat sticky menu. Link to comment Share on other sites More sharing options...
Huzy 11 Odesláno: 27. Červenec, 2016 Author Share Odesláno: 27. Červenec, 2016 Okey, díky Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now