Template guide

Instructions

How to turn off the page effects, edit the SVG icons and work with the sliders in Cranez.

01

Page Effects

Common effects

These effects run across the site. Each one is started by the attribute or class shown here:

  1. data-text-reveal on headings: the letters turn from grey to black as you scroll.
  2. data-text-depth on paragraphs: the letters slide into place as you scroll.
  3. sub-title in the Sub title component: the label slides out from behind its dot.
  4. breadcrumb in the Breadcrumb component: the background settles and the title slides up when the page loads.
  5. button in the Button component: the label rolls up on hover.
  6. footer-giant in the Footer component: the Cranez letters rise from the centre as you reach the end of the page.

Turn off with an attribute

data-text-reveal and data-text-depth are safe to remove. Select the heading or paragraph, open the Settings panel and delete the attribute under Custom attributes. On a paragraph, also delete role="group", which is only there for the effect. The text then shows in its final state. If the element sits inside a component, open the component first; the change applies to every instance.

Headings and paragraphs keep their font size and color from their own class, so the styling stays the same after you remove the attribute.

Keep the layout classes

sub-title, breadcrumb, button, footer-giant and the card classes such as service-card, team-card and pf-grid-card also hold the layout, so removing them breaks the design. To stop one of these effects, open the Interactions panel and delete its interaction. Section reveals such as Blog card appear on scroll can be deleted the same way, and the content then shows without moving.

Reduced motion

When a visitor turns on Reduce motion in their system settings, scroll and page-load effects jump straight to their final state, and the mouse-follow effects are switched off. No extra setup is needed.

02

SVG Icons

Edit an icon

Most icons are inline SVG inside a Code Embed. Select the Code Embed, open the code editor from the Settings panel, make your changes, then choose Save and Close. If the icon sits inside a component such as Header, Footer or Button, open the component first.

Change the color

Icons that use currentColor take the Font color of their class or parent, so change the Font color in the Style panel. If the code has a fixed value such as fill="#B82132", edit it there or replace it with currentColor. Keep fill="none" on outline shapes, otherwise they fill solid.

Change the size

Check the width and height on the svg tag in the code, keep the viewBox, then follow the method the icon uses:

  1. Percent values, such as width="100%": change the Width and Height on the class. Most Cranez icons use this method.
  2. Em values, such as width="1em": change the Font size on the class. If the class also sets Width and Height, change those too.
  3. Fixed numbers, such as width="18": edit the numbers in the code and keep the same ratio. If the class also sets Width and Height, change those too.

Example

This arrow from the Button component uses percent sizing and currentColor, so its size and color come from CSS. The path is shortened here.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"
  width="100%" height="100%" fill="currentColor">
  <path d="M18.256 23.076l-0.944-0.959 5.451-5.451 ..."/>
</svg>

Replace an image

A few SVGs, such as the Cranez logo and the award badge, are placed as Image elements, so CSS cannot recolor them. To change one, replace the image with a new SVG file.

03

Sliders

Timed to the slider

The review slider on Home, the testimonial slider on Services and the About slider swap their text and blocks with interactions that are timed to the Slider settings: Fade Over animation with its own easing and duration. If you change Animation, Easing or Duration, the old and new content may overlap during the change.

Add or remove slides

Duplicate a slide inside the Slider mask and edit its content. The swap interactions target every slide by class, so a new slide animates without any change to the interactions.

Swiping on a touch screen changes the slide without the text swap. The content still shows in full.