Switch code languages and copy the current example

One example is available in two programming languages, with a matching copy action.

Try the motion

When to use it

Technical documentation that presents equivalent code in several languages.

How the motion works

Both examples count completed items. Changing languages updates the displayed code and the text sent to the clipboard.

How to use it

Switch between JavaScript and Python, then copy the visible example.

Try a device version

Example files and implementation notes

Choose a device in the demo and save the motion to your collection to download the working HTML and implementation notes as a ZIP.