This requires the following CSS to be added globally to support the view transitions.
@view-transition {
navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 620ms;
animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}
/* Default: normal link navigation slides up */
::view-transition-old(root) {
animation-name: page-out-up;
}
::view-transition-new(root) {
animation-name: page-in-up;
}
/* Back / forward browser traversal slides down */
:root[data-nav-direction="back"]::view-transition-old(root) {
animation-name: page-out-down;
}
:root[data-nav-direction="back"]::view-transition-new(root) {
animation-name: page-in-down;
}
@keyframes page-out-up {
from {
opacity: 1;
transform: translateY(0);
}
to {
transform: translateY(-3rem);
opacity: 0;
}
}
@keyframes page-in-up {
from {
opacity: 0;
transform: translateY(3rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes page-out-down {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(3rem);
}
}
@keyframes page-in-down {
from {
opacity: 0;
transform: translateY(-3rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
}
}
@keyframes mission-panel-alpha-out {
from {
opacity: 1;
transform: perspective(var(--mp-perspective)) rotateY(0deg);
}
to {
opacity: 0;
transform: perspective(var(--mp-perspective)) rotateY(-90deg);
}
}
@keyframes mission-panel-alpha-in {
from {
opacity: 0;
transform: perspective(var(--mp-perspective)) rotateY(90deg);
}
to {
opacity: 1;
transform: perspective(var(--mp-perspective)) rotateY(0deg);
}
}What is it?
The Mission Viewer Alpha component is a full-screen (or custom-height) presentation component that displays a series of panels with smooth animated transitions. Each panel combines a large visual with supporting content, making it ideal for showcasing featured projects, products, services, case studies, or storytelling content.
Unlike a traditional slider, Mission Viewer Alpha is designed as a guided presentation. Only one panel is visible at a time, allowing visitors to focus on the current message before moving to the next.
When to Use It
Mission Viewer Alpha works well for:
- Portfolio showcases
- Product or feature highlights
- Step-by-step introductions
- Landing page hero sections
- Interactive storytelling
- Featured destinations or locations
- Company timelines
Component Structure
The component is made up of two parts:
- Mission Viewer Alpha – the parent container that controls layout, navigation, transitions, colors, and sizing.
- Mission Panel Alpha – the individual slides displayed within the viewer.
One Mission Viewer can contain as many Mission Panels as needed.
Creating Your First Viewer
- Add a Mission Viewer Alpha component to the page.
- Add one or more Mission Panel Alpha components inside the Mission Viewer.
- Configure the content for each panel.
- Publish your page.
Navigation buttons and slide indicators are generated automatically.
Configuring the Viewer
Styles
The Styles group controls the overall appearance of the viewer.
Background
Sets the overall background color behind the panels.
Surface
Controls the background color used beneath images and content.
Text Color
Primary text color.
Muted Text
Secondary text color used for descriptions.
Accent Color
Used for highlights, buttons, navigation, and active indicators.
Heading Color
Overrides the heading color if needed.
Height
Sets the height of the entire component.
Examples:
100svh– Full viewport height90svh– Nearly full screen (default)75svh– Medium hero50svh– Compact feature section
Transition Settings
These options control the panel animation.
Perspective Shift
Controls the amount of 3D perspective during transitions.
Duration
How long each panel transition takes.
Delay
Optional delay before the transition begins.
Ease In / Ease Out
Controls how the animation accelerates and decelerates.
For most uses, the defaults provide a smooth cinematic effect.
Content Transition
Controls how text appears after each slide transition.
Use Transition
Enable or disable staggered text animation.
Transition Time
Animation speed for the content.
Easing
Animation timing function.
Stagger Duration
Delay between each text element appearing.
Configuring a Mission Panel
Each panel contains the following content.
Project Name
A small label that is displayed above the heading.
Examples:
- Featured Project
- New Release
- Case Study
- Chapter One
Title
The primary heading for the panel.
Keep titles concise for the strongest visual impact.
Description
Supporting copy describing the panel.
Aim for one or two short paragraphs.
Image
Each panel includes a full-size image.
You can choose between:
- WordPress Media Library
- External Image URL
Large landscape images generally produce the best results.
CTA Link (Optional)
Enable this option to display a call-to-action button.
You can specify:
- Link text
- Destination URL
- Optional ARIA label
- Additional CSS classes
Panel Number
Optionally displays a large decorative number behind the content.
This number is decorative only and is hidden from assistive technologies.
Navigation
Visitors can move between panels using several methods.
Previous and Next Buttons
Visible navigation buttons are automatically generated.
Navigation Dots
Each slide includes a corresponding navigation dot.
Selecting a dot immediately displays the associated panel.
Keyboard Navigation
When the component is visible:
- Left Arrow moves to the previous panel.
- Right Arrow moves to the next panel.
Keyboard support is built into the component, so focus is not required on the navigation controls.
Accessibility
Mission Viewer Alpha has been designed with accessibility in mind.
Features include:
- Semantic carousel structure
- Proper slide announcements for assistive technology
- Keyboard navigation
- Focus-visible styles
- Decorative elements hidden from screen readers
- Support for
prefers-reduced-motion - Inactive panels are removed from the accessibility tree using
inert - Polite live region announcing slide changes
Tips for Best Results
- Use high-quality landscape images.
- Keep titles under 8–10 words.
- Limit descriptions to approximately 30–60 words.
- Maintain consistent image style across all panels.
- Use accent colors sparingly to draw attention.
- Avoid placing important information inside the images themselves.
Responsive Behavior
On smaller screens, the component automatically changes to a vertical layout.
The image is displayed first, followed by the text content, maintaining the same navigation and interaction model across all devices.
Example Uses
- Portfolio homepage
- Product launch page
- Feature tour
- Travel destination showcase
- Historical timeline
- Software release highlights
- Interactive company story
Mission Viewer Alpha provides a polished, presentation-style experience while remaining fully responsive, keyboard accessible, and customizable through component properties.