Blocks and motion

Find the blocks of Leitvia Studio and Leitvia Pro in the editor, give core blocks a style of the theme, and let blocks move into view.

For editors and designers · Leitvia Studio, Leitvia Pro for its blocks · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.65 and Leitvia Pro 0.8.55

Find the blocks

All blocks of Studio and Pro sit in one category of the inserter, the panel that lists every block.

  1. Open a page or post in the editor.
  2. Click Block Inserter, the plus button at the top left.
  3. Type Leitvia into the search field, or scroll to the category Leitvia.
  4. Click a block to add it to the page.

The block takes its colors, sizes and spaces from the roles of the theme, so it fits the rest of the site.

The block inserter of the editor with the search Leitvia: blocks such as Before and After, Product set, Data list, Data map, Entry list, Job posting, Language menu, Newsletter sign-up, Route, Scroll gallery, Scroll Story, Showcase, Slider, Accessibility bar, Announcement bar and Bento grid.
The blocks of Studio and Pro in the inserter, after a search for Leitvia.

Blocks of Leitvia Studio (free)

Studio adds 25 blocks. The names are those of the inserter.

GroupBlocks
Layout and marketingAccessibility bar, Announcement bar, Bento grid, Comparison table, Counter, FAQ, Feature group, Icon, Icon list, Marquee, Pricing, Reveal, Spotlight, Timeline, Wizard
Privacy and formsConsent settings, Contact form, Embed behind consent, Form error summary
Navigation and contentEasy language switch, Map (loads after consent), Rating, Share, Table of Contents
Shop (with WooCommerce)Product comparison

Three more appear only inside another block: Mega menu inside a Navigation block, Load more and Query filter inside a Query Loop.

Blocks of Leitvia Pro

Pro adds 27 blocks to the same category while Leitvia Pro is active. Shoppable image and Sticky buy bar need WooCommerce.

GroupBlocks
Layout and motionBefore and After, Scroll gallery, Scroll Story, Section mark, Showcase, Slider
Content and dataData list, Data map, Documentation navigation, Entry list, Event at a glance, Job posting, Key facts from products, Price cards from products, Product comparison, Reviews slider, Route
Forms and bookingAppointment booking, Newsletter sign-up, Order form, Ticket form
Navigation and adsLanguage menu, Ad slot
ShopAdd to cart with swatches, Product set, Shoppable image, Sticky buy bar
The start page of the demo Showcase on demo.leitvia.com, which shows every pattern and block of Leitvia on one site.
The demo Showcase shows every block on a live site.

Block styles

A block style is a second look for a core block, such as a group shown as a note. The theme adds 44 of them.

  1. Select the block in the editor, for example a Group.
  2. Open the block settings (Settings at the top right) and the tab Styles.
  3. Click a style, such as Note, Warning or Card.

The block changes at once, and its text keeps a readable contrast in every style variation.

The editor with a selected Group block and its settings on the right: the tab Styles lists the block styles of the theme Leitvia, such as Note, Success, Warning, Tip and Card, with Note chosen.
The styles of the theme for a Group, in the tab Styles of the block settings.

A few examples: Note, Success, Warning, Tip and Card for groups, Divided and Checklist for lists, Eyebrow and Badge for paragraphs, Terminal for code and Comparison for tables. Studio adds seven more, such as Icon field and Link card. Pro adds more, such as Zoom card and Image zoom for groups and covers, and Chronicle and History for the Timeline.

Motion for the whole site

One setting decides how strongly blocks move into view on scroll.

  1. Open Leitvia Studio › Settings, tab Effects.
  2. Under Motion on scroll, choose Off, Subtle or Bold. Subtle is the default.
  3. Turn on Reading progress for a thin line under the header that grows while a post is read, or Page transition for a soft fade between pages. Both are off by default.
  4. Click Save settings.

Off loads no animation at all. Visitors who ask their system for reduced motion, or who turn on Motion off in the Accessibility bar, never see motion.

The tab Effects of the Settings of Leitvia Studio: the choice Motion on scroll with Off, Subtle and Bold, the switches Reading progress and Page transition, and the button Save settings.
Motion on scroll, Reading progress and Page transition in the Studio settings.

Motion for one block

  1. Select the block and open its settings.
  2. Open the panel Animation.
  3. Under Effect on scroll, choose how the block appears, for example Rise, Appear or One after another, which shows the items of a grid in turn. Parallax is there for Cover and Timeline only.
  4. Optional: set Strength for this block and click Preview to see the effect once.
  5. For a card that holds a link, choose Effect on hover: Lift raises the card, Zoom image enlarges its image inside the frame. Groups, columns, covers, Media and text and images offer it.

On the published page the block moves into view once. Keyboard focus on a card link shows the same hover effect.

The editor with a card of the pattern Recent work selected and the panel Animation open in the block settings: Effect on scroll and Effect on hover, set to Zoom image.
The panel Animation of a card with a link.

Key figures that count up are the block Counter, not an effect.

For developers

Durations and distances are motion tokens in theme.json under settings.custom.motion: 800 ms per reveal (1200 ms with Bold), a distance of 2.5 rem (5 rem), 100 ms between the items of One after another (140 ms), and a hover of 200 ms that lifts by 2 px or scales images to 1.03. A style variation or a child theme changes the motion of the whole site there. The hover choice is saved as the block attribute leitviaHover, the effect on scroll as leitviaAnimation. More in the Developer guide.