Play Animated 3D Models in WordPress With Clickable Pins

Play Animated 3D Models in WordPress With Clickable Pins

Pick an animation from the dropdown, then click the green pins.

Pro

Lite viewer

3 clips · 20 MB

Bee · 3 animations

Pins with a play icon are Animation hotspots. “Hover” loops until you click it again; “Take off” plays once, then the bee goes back to what it was doing before.

Animated 3D models in WordPress that start playing as soon as the page loads. Visitors can switch animations from a dropdown, and you can set a hotspot to play one specific animation when it is clicked.

01

Plays as the page loads

Autoplay is on, so the bee starts with its _bee_hover animation straight away.

02

Switch from a dropdown

With the Animation Selector on, the viewer lists the animations it finds in the file for visitors to pick from.

03

A pin can play one animation

Animation hotspots play one specific animation when clicked: “Hover” loops, “Take off” plays once.

How it works

How the dropdown and the pins play animations

Animation Selector

Switched on, the viewer lists the animations it finds in the file in a dropdown.

Autoplay

On, starting with the _bee_hover animation, so the model moves as soon as the page loads.

Animation hotspots

Each pin plays one animation: _bee_hover with Repeat: Loop until clicked again, _bee_take_off_and_land with Repeat: Once.

When an animation pin does nothing

  • The name must match: an animation hotspot does nothing at all if its Animation Name does not match an animation saved in the file — the viewer checks the name first and ignores the click if there is no match.
  • Pick from the list: in the editor, the Animation Name list shows the animations the loaded model contains, starting from Select an animation.

Setup

Set it up in 3 steps

1

Turn on Enable Animation Selector

The viewer lists the animations it finds in the file, so visitors can switch between them.

2

Switch on Autoplay

Choose the animation to start with. Here it is _bee_hover.

3

Add Animation hotspots

Give each pin an Animation Name from the list and a Repeat setting: Loop until clicked again, or Once.

Under the hood

Settings used in this demo

SettingValue
Enable Animation Selectoron — the viewer lists the animations it finds in the file
Autoplayon, starting with the _bee_hover animation
Animation hotspots_bee_hover (Repeat: Loop until clicked again) · _bee_take_off_and_land (Repeat: Once)
Hotspot StyleMinimal Icon Badge — animation pins show a play icon automatically
File size20 MB — a poster image shows while it loads, and it is the only viewer on this page

FAQ

Questions about animated models

Quick answers before you set up your own.

Where do the animation names come from?

From the GLB file itself. The names used here (_bee_idle, _bee_hover, _bee_take_off_and_land) are saved in the file, and the editor’s Animation Name list shows the animations the loaded model contains.

What is the difference between Loop and Once?

Loop until clicked again keeps playing until the pin is clicked again. Once plays the animation one time, then the model goes back to what it was doing before.

Why do the pins show a play icon?

The viewer uses the Minimal Icon Badge hotspot style, and animation pins show a play icon automatically.

What shows while the 20 MB model loads?

A poster image shows while the file loads. It is also the only viewer on this page.

Keep exploring

Related demos

Hotspots

Compare four hotspot styles on the same chair, from plain text tags to hover cards.

Variants & textures

Switch a sofa between five colourways with no page reloads, all from one 3.1 MB file.

See all 17 live 3D Viewer demos

One feature per page, each with the exact settings behind it.

See the 3D Viewer on real product pages in the WooCommerce 3D product demos.

Model: Bee — animated glTF sample (see demo-assets/ATTRIBUTION.md).

Scroll to Top