#generatepress, #wordpress, #javascript, #youmightnotneedjquery
In this video I demonstrate how to use plain and simple JavaScript to implement sticky top bar that hides and reveals on scroll actions without jQuery. GeneratePress removed much of jQuery but a couple of features still use it. Sticky bar is a simple feature for which jQuery is hardly needed.
Code available here gist.github.co...
Негізгі бет Replace GeneratePress Sticky Top Nav Bar with a Lightweight Vanilla JavaScript Snippet
Пікірлер: 4