Published on August 21, 2022

Tutorial: Creating A Scroll Activated Sliding Image Gallery In WordPress With Oxygen

In this video, learn how to use JavaScript to create a scroll-activated Sliding Image Gallery effect with Oxygen. This video also discusses how to create a throttle utility function in JavaScript, which uses a callback and setTimeout, to limit how frequently the effect runs since we’re monitoring when a page is scrolled.

JavaScript used in this video: https://gist.github.com/Spellhammer/8e49e656e0b9454092836a61c9261bb5.

Note: You will need to update the element IDs or switch to using classes in the linked JavaScript for the Sliding Image Gallery effect to work on your site.

You can learn more about some of the JavaScript settings used for the throttle utility function through the following MDN entries:

The Oxygen Team
Updated on: August 21, 2022

Pixel-perfect design meets WordPress!

Oxygen is the best way to visually design WordPress websites.
If you can build it with WordPress, you can design it with Oxygen.
  • Lifetime Access
  • Oxygen Classic + New Oxygen
  • All Premium Add-Ons
  • 60-Day Money Back Guarantee
Start Designing

You'll build incredible websites with Oxygen

Get started with Oxygen today and unlock incredible value.

Get Oxygen

30-day money back gurantee

Try Oxygen risk-free. If you’re not satisfied, get a full refund within 30 days.

Unlimited site license

Use Oxygen on as many personal or client projects as you want — no limits.

Fast, world-class support

Our experienced team is eager to assist you with technical questions.

Use on client websites

Build and deliver professional-grade websites for your clients with no extra fees.