Marquee3000 | Marquees for the new millenium
kandi X-RAY | Marquee3000 Summary
kandi X-RAY | Marquee3000 Summary
Note 16.6.2020 This module is now a human toddler's age! I'm super happy that it has been of use to a lot of people and it's seen in use creatively around some really cool websites on the web in the last years. Apologies if I don't offer support aside from tending to reports related to breaking bugs. I am however thinking of revisiting this module sometime soon (fingers crossed) because 3 years in js land is a millenium. Marquees for the new millennium . Super smooth and versatile javaScript plugin with no dependencies. Note: Marquees were a bit neglected, no? There are tons, but they're slow and you can't really do much with them. So much you can do with the inherently strong typographic look of em. So this is me trying to update them for 2017. A GSAP dependent version is available (WIP): MARQUEE3G.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Animate the marqueue
Marquee3000 Key Features
Marquee3000 Examples and Code Snippets
Community Discussions
Trending Discussions on Marquee3000
QUESTION
I am working on a navbar for my react app (using gatsbyjs to be precise). In the navbar I have a marquee that I initialize in the navbar component in componentDidMount
.
It works as intended, but upon every route change componentDidMount
will run again which results in the marquee speeding up for every page change, making it go faster and faster.
Is this expected behaviour? And if so, how do I make sure that the script is only run once?
navbar.js
...ANSWER
Answered 2018-Nov-13 at 09:44Since I'm using GatsbyJS I went with this plugin from V1, which makes my layout component persist across pages.
gatsby-plugin-layout
This plugin enables adding components which live above the page components and persist across page changes.
This can be helpful for:
- Persisting layout between page changes for e.g. animating navigation
- Storing state when navigating pages
- Custom error handling using componentDidCatch
- Inject additional data into pages using React Context.
This plugin reimplements the behavior of layout components in gatsby@1, which was removed in version 2.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Marquee3000
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page