Start here
Editing and styles
Media and content
Tutorials
Site and publishing
Layout and navigation
Forms and services
Use Variants to change what a button or group looks like when something happens on the page. A button can show a different label while a player is playing, and a group can change when a popup opens.
Base is the starting appearance. Select a button or an ordinary group and open Variants in the Style inspector. Enable Variants for a group, then choose Add Variant. Name the variant and choose Edit Condition. If the condition asks for a source, select the element it should follow.
Conditions depend on the source. You can follow player playback or mute status, a gallery slide, a checkbox or field value, form validation or submission, a popup or layout block, the color theme, or a named page state. Conditions that compare a value show the relevant comparison controls. The full list includes Player is playing or muted, Player position reached (after a number of seconds), Autoplay is running, Slide is current, Checkbox is checked, Field value, Field is focused, Field has a validation error, Form is valid, Popup is open, Layout block is open or in view, Theme is dark or light, Page state is active, Page variable value (is, is not, is less than or is more than) and Custom value, which compares a value set by JavaScript with pageState.set(name, value). When several variants match, the first one in the list wins, and Base is used when none match.
The condition selects the variant. Its Default, Hover and Pressed appearances control the feedback a visitor sees while using it.
Choose the variant and select Default, Hover or Pressed. Effect chooses Automatic, Sitely’s built-in feedback, or Custom, which lets you edit the button’s artwork and text for that appearance. Hover and Pressed each have a Duration and Easing, and a selected variant has a Transition Duration and Easing. Interaction can be Normal, Disabled (dimmed) or Hidden. Keep instructions and essential controls accessible on touch screens, where visitors cannot hover.
Choose Edit Variants and select the variant and feedback appearance in the floating toolbar. Select a member of the group to edit its offset, rotation, 3D rotation and depth, scale, opacity or visibility. These overrides preserve the group’s ordinary layout.
Set Delay, Duration and Easing for each member. Choose Done or End Editing Variants to return to normal editing. The variant toolbar’s Edit in Timeline button opens the transition in the timeline; Base with Default has no transition, so it is not offered there. Reset Variant Overrides removes the selected member’s changes, including timing and intermediate keyframes.
For a Details button, set the click action to Page State Control and add a state named Expanded. Choose Toggle to switch it on and off. Set the button and illustration group variants to Page state is active and select Expanded. One click can now change both appearances. To always set a value, choose Set and enter a Value (1 turns the state on), or choose Reset to turn it off. A page state is a whole number that starts at 0 when the page loads: Increment and Decrement change it by one, Clamp stops at the Minimum or Maximum, Wrap starts over, and the Page variable value condition compares it.
Open Animation Timeline while editing a group variant. The square endpoints follow the starting and destination appearances. Add intermediate keyframes to shape the motion, then test the click and its resulting appearances in Preview.
Please report any shortcoming in this documentation and we’ll fix it as soon as possible!
Updated for Sitely 8
Powerful and refreshingly simple, at home on Mac, finding new freedom on iPad.
Always on. Keeps the site working.
Enables optional features.
Remembers your settings.
Counts visits and page views.
Tailors ads to your browsing.
We and our partners use optional cookies for extra features, saved preferences, visit counts and personalised ads. To change your choices later, use Cookie settings in the footer.
Closing keeps optional cookies off. Privacy policy