Documentation/Zero-JS Auto Mode

Zero-JS Auto Mode

Add cinema transitions to static HTML, Astro, Shopify, WordPress, or Webflow sites without writing JavaScript.

1. Import the Auto Scanner

javascript
1import 'motion-organic/auto';

2. Page Transitions & Typography Attributes

html
1<!-- 1. Basic Organic Blob Link -->
2<a href="/about.html" data-mo="organic-blob">
3 About Us
4</a>
5
6<!-- 2. Text Portal with Audio & Custom Speed -->
7<a
8 href="/gallery.html"
9 data-mo="text-portal"
10 data-mo-word="GALLERY"
11 data-mo-sound="whoosh"
12 data-mo-preset="cinematic"
13>
14 Explore Gallery
15</a>
16
17<!-- 3. 2-Line Cinema Typography -->
18<h1 data-mo-text="liquid-sheen" data-mo-speed="1.2">
19 SOLUTIONS IN AHMEDABAD
20</h1>

3. MoHorizon 3D Cylindrical Horizon & Spatial Stacking

Project any HTML section onto a 3D cylindrical drum or planetary horizon without writing JavaScript:

html
1<!-- 1. 3D Cylindrical Horizon Roll -->
2<section
3 data-mo-horizon
4 data-mo-radius="1400"
5 data-mo-perspective="1000"
6 data-mo-pitch-factor="1.2"
7 data-mo-depth-factor="1.0"
8 data-mo-shading="true"
9>
10 <div class="card">Curves over the 3D planetary horizon</div>
11</section>
12
13<!-- 2. Deep 3D Spatial Depth Layer -->
14<div
15 data-mo-spatial
16 data-mo-depth-factor="1.5"
17 data-mo-shading="true"
18>
19 Deep 3D Horizon Layer
20</div>