beautiful
thing
GROWTH is a
GROWING FLOWERS
Add an animated wildflower garden to your Showit design. When the effect scrolls into view, colorful flowers grow upward from behind a Showit rectangle, open into bloom and sway gently in the breeze.
The rectangle acts as an anchor for the flowers and can be completely transparent, allowing you to position the garden behind other elements in your design.
HOW TO USE IT
CREATE YOUR FLOWER ANCHOR
Add a rectangle in Showit where you would like your flowers to grow.
Resize and position the rectangle to control the width and placement of your flower garden.
The rectangle can be visible or completely transparent.
ADD THE CLASS SELECTOR
Select the rectangle and go to:
Advanced → Class Selectors
Add:
growing-flowers
Then click the check mark to save it.
Showit may display it as .growing-flowers after you add it.
ADD THE JAVASCRIPT
Select the page name in the Pages panel.
Go to:
Advanced Settings → Page Loaded Javascript
Paste the entire Growing Flowers code into the box.
Do not add <script> tags. Showit adds them automatically.
PREVIEW YOUR EFFECT
Preview your site from above the Flower Anchor and scroll down to it.
When the rectangle enters the screen, the flowers grow upward from behind it, then the blooms open and the garden begins to sway gently in the breeze.
The growing animation plays once. The gentle sway continues.
CUSTOMIZE THE COLORS
At the top of the code, find:
var stemColor =
'#657153';
This controls the color of the stems and leaves.
Replace the HEX code with any color you'd like.
Find:
var flowerColors = [
'#E95D45',
'#E8C95B',
'#4565A8',
'#B56F8C',
'#D9896A',
'#8A6FA8'
];
These are the colors used for the flowers.
Replace the HEX codes with your own colors to match your website or brand.
You can also add or remove colors from the list.
Find:
var centerColor =
'#292826';
This controls the color of the flower centers.
Important: use 6-digit HEX codes, such as #657153. Shorthand codes like #FFF and color names like "red" will not work correctly.
The flowers automatically use slightly different shades of each color, with soft shading on the petals, so the garden looks natural.
CUSTOMIZE THE NUMBER OF FLOWERS
Find:
var flowerCount =
48;
This controls how many flowers appear in the garden.
Increase the number for a fuller garden.
Decrease the number for a more minimal garden.
CUSTOMIZE THE FLOWER HEIGHT
Find:
var minHeight =
60;
var maxHeight =
145;
These settings control the range of flower heights.
minHeight controls the shortest flowers.
maxHeight controls the tallest flowers.
The flowers automatically vary between these heights to create a more natural garden.
CUSTOMIZE THE MOTION + DETAILS
Find:
var windSway =
true;
true = the flowers gently sway in the breeze.
false = the flowers stay still.
Find:
var swayAmount =
1;
0.5 = very gentle
1 = natural
2 = windy
Find:
var extraDetails =
true;
true = adds grass blades, a few closed flower buds and tiny filler sprigs between the flowers.
false = flowers only. This is lighter on older devices.
Find:
var depthEffect =
true;
true = flowers in the back look slightly smaller and paler than the flowers in front, creating more depth.
false = all flowers look the same.
The sway is turned off automatically for visitors who have reduced motion turned on in their device settings.
If your page feels slow, especially on older phones, try setting extraDetails to false or windSway to false.
POSITIONING NOTE
The flowers grow upward from the top edge of the Showit rectangle.
Move the rectangle to change where the flowers appear.
Resize the rectangle to make the garden wider or narrower.
You can make the rectangle completely transparent and position it behind text, images, buttons, or other Showit elements. This allows the flowers to appear as though they are growing from behind your design while the invisible rectangle controls the effect.
FLOWER NOTE
The garden includes four flower styles: Daisy, Cosmos, Buttercup, and Allium.
Each flower opens from a bud, petal by petal, and has shaded petals, a layered bloom and a detailed center.
Flower heights, stem curves, leaf placement, leaf direction, flower size, head angle, and spacing automatically vary to give the garden a more natural appearance.
You do not need to edit these variations manually.
MOBILE NOTE
Growing Flowers works on both desktop and mobile.
Because Showit allows you to design the desktop and mobile layouts separately, you can resize or reposition your Flower Anchor on mobile to control how the garden fits your mobile design.
QUICK INFO
Difficulty: Easy
Requires: Showit Rectangle + Class Selector + Page Loaded Javascript
Class Selector: growing-flowers
Trigger: Flower Anchor enters the screen
Anchor: Native Showit rectangle
Flower Colors: Customizable
Stem + Leaf Color: Customizable
Flower Center Color: Customizable
Flower Count: Customizable
Flower Height: Customizable
Wind Sway: Optional
Extra Details: Optional (grass, buds, filler sprigs)
Depth Effect: Optional
Mobile: Yes
Coding Knowledge: Not required