Hi can someone give me a tip on how to create a similar header like http://www.gamespot.com/news/ has. I would like to have a changing header logo on scroll down. I'm thinking to create two headers and toggle between two in jquery.
Changing header logo on scroll down
2.4k Views Asked by user3134706 At
1
There are 1 best solutions below
Related Questions in JQUERY
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in HEADER
- How can I read the header of request to webserver
- #include Header files in C with definition too
- I have a horizontal line drawn in the header of the last page of the list of tables in my document, how can I remove it?
- Invoke Rest API with a custom header
- A subtle line appears within our homepage banner, situated near the header section
- browsers don't display authorization header in devtools
- Using if directives in headers
- Why is my head not working on my website? It only shows the alt text
- Menu and logo disappeared from the header in WordPress
- How do I log into a site with curl or javascript?
- What CSP Headers are needed for serving .NET Core site to iframe in Shopify Page?
- Background video of header doesnt display on iPhones
- Multi-Level Header in Pandas DataFrame
- My header has disappeared/lost its formatting; Its suddenly not applying some of the custom css
- Why Rstudio compiler looking for R headers in the wrong include directories?
Related Questions in SCROLL
- How to clip grid cell and provide scroll as well?
- Understanding Scroll Anchoring Behavoir
- Scrolling Instagram Followers Not Working
- Trigger JS when scrolling and record event to PHP
- How to scroll to the bottom of console window in PyCharm2019 automatically?
- Termux: Different scrolling behaviour after "screen"-command
- Making a Back to the Top button on Javascript
- Jittery Behavior on First Scroll in React Header Component
- Problem with locomotivescroll nextjs typescript working
- How to shrink a sibling while scrolling a sibling below?
- How to set an individual mouse scroll on two different canvases that are connected to separate frames but the frames are one on top of eachother?
- Pin section and change tabs on vertical scroll with GSAP or just javascript
- Kotlin/Compose: Why won't my lazyColumn scroll?
- How to "stop" an element after scrolling to another element
- Scroll View android studio
Related Questions in GRAPHICAL-LOGO
- Menu and logo disappeared from the header in WordPress
- Problem with *.svg logo showing on my website
- how draw sequence logo plot based on data table in R?
- How to add logo to logo on the bottom of the page, with R shiny?
- The most efficient way to include a logo on both title and subsequent pages in Rmarkdown/Quarto beamer presentation
- Missing Website Logo for Non-WWW Link in Google Search Results
- How to automatically adjust the position of a layout image using plotly?
- tmap : separate the legend + add logos below the map box
- Packed bubble adding image for bubble background
- ZPL: how to display or hide a image on a label
- transparent background of logo
- In Google Apps Script, is there a way to define two versions of the logoUrl, one for dark mode and one for light?
- App Logo shows in debug apk but not in release apk | Android
- R markdown knit to github add logo to right of header
- how can i Input an image over an icon in React?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could either make two headers, or you could modify one. Either way, you just need to listen to the scroll event. On scroll, check to see if the window is scrolled all the way to the top or not, and put up the header you want for the situation you find.
If this was your header
Then your javascript would look something like this