Whimsy

Whimsy uses pure CSS animations to help you add fun, delightful animations to your images when hovered over by your site's visitors.

Examples

Whimsy is a fantastic way to dress up your images, while also providing a bit of extra information to your. Here we've created several different examples, but the combinations of overlys, animations and content are nearly endless.

Out of this world

To the moon

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Space walk

Sed do lorem eiusmod tempor ut labore et dolore magna aliqua.

Space walk

Sed do lorem eiusmod tempor ut labore et dolore magna aliqua.

Space Walk

Lorem ipsum dolor sit amet, adipiscing elit dolor, sed do eiusmod.

If my calculations are correct, when this baby hits 88 mph, you're gonna see some serious s***.

Whimsy uses a CSS-based approach to animating its various elements, which provides a more lightweight library of animations.

This tool has a lot of different uses, but one of our favorites is creating image gallery indexes and layouts. We can't wait to see what you build with it.

Settings

Edit Mode

Edit Mode Title

Allows you to add a custom label to the top title bar of the tool. This lets you quickly identify what purpose you're using that tool for in your layout. This title is also visible when you've collapsed or hidden the contents of the tool in Edit Mode.

General

Image

This drop zone is where you'll provide the main, required image for the Image tool. You can use the following file formats for this drop zone, as well as the Retina Image drop zone, below.

  • JPG
  • PNG
  • GIF
Retina Image

Here you can optionally add a Retina Image, in addition to the required normal Image above, for high DPI displays.

ALT Tag

Provides you a way to add an ALT Tag to your image. The ALT tag is used in HTML to specify alternative text that is rendered when the element to which it is applied cannot be displayed. It is also used by screen reader software so that a person who is listening to the content of a webpage (for instance, a person who is blind) can interact with this element.

Add Accessibility Label

When enabled you can add an ARIA label for accessibility to your Image.

Include Base Margin

When enabled a preset margin will be added to the base of the tool. Foundry allows you to configure the Base Margin preset to your liking within the Control Center. The Base Margin can be configured independently at each of the 6 responsive breakpoints.

Sizing

Help Prevent Content Layout Shift

When enabled you'll be given a setting to tell the Image tool what your image's original width and height are. Specifying specific dimensions for your image can help to avoid Content Layout Shift.

Overlay

The Overlay in Whimsy is the background behind your content, which overlays the image when you hover your mouse cursor over the image. This section of settings allows you to customize this Overlay.

Style

Whimsy's overlay can be styled in a number of different ways to provide a unique look and feel. Here's a look at each of the available options.

  • Presets
  • Solid
  • Vertical Linear Gradient
  • Horizontal Linear Gradient
  • Diagonal Linear Gradient
  • Radial Gradient
  • Transparent
Presets

When using the presets Style Mode for your overlay you'll be able to choose from one of Foundry's color presets for your backdrop color.

Overlay Colors

These two color pickers allow you to customize the look and feel of the Overlay. The Solid style mode uses only the Primary color picker, while the gradient styles all use both the Primary and Secondary color pickers.

Height & Width

Allows you to configure the height and width of the overlay in relation to the size of the image itself. Paried with the Placement feature below you can get a variety of different layout configurations.

Placement

Sets the origin of the Overlay's placement. If for example you set the placement to be Bottom & Left and the Width is set to 50% and the Height set to 100% the the Overlay would run from top to bottom and fill the left half of the image.

Overlay Content

Use Spacing Tool for Padding

Whimsy has some built-in controls for adjust the padding within the Overlay Content area. If you'd like to customize this padding on a more granular level you can enable this feature and instead add a Spacing tool to the Overlay Content area, which provides a great range of control.

Uniform Padding

When the above "Use Spacing Tool for Padding" is disabled you can use the Uniform Padding control to adjust the amount of padding around the content.

Padding Units

Allows you to choose what form of sizing units to use for the Uniform Padding value.

Placement

This setting gives you the ability to place the content is various different locations, relative to the Overlay itself. You can choose from the following locations within the Overlay:

  • Top Left
  • Top Center
  • Top Right
  • Center Left
  • Center Center (Default)
  • Center Right
  • Bottom Left
  • Bottom Center
  • Bottom Right
Default Text

This color picker provides a base text color for the Overlay Content. Content placed within the Overlay Content area will take on this text color unless that item has its own text styling applied.

Rounded Corners

Rounded Corners

Foundry provides 5 different presets for rounded corners. These can be found throughout Foundry's various tools. You're also able to remove the roundness of the corners by setting this to none, or provide your own custom value for the border radius, or rounded corners. When using Custom mode you can set a different value on each of the four corners.

Animation

This section controls the various animations, easing and duration for each of the animateable elements within Whimsy.

Overlay Mode

Allows you to choose the animation style that will be applied to the Overlay. This animation is executed when the visitor hovers thier mouse cursor over the Whimsy image. Choosing No Animation here will disable the Overlay's animation, but does not affect the remaining animation effects.

  • Fade In
  • Fade In Top
  • Fade in Bottom
  • Fade in Left
  • Fade in Right
  • Zoom In
  • Rotate In
  • Rotate Out
  • Rotate In Top Left Corner
  • Rotate In Top Right Corner
  • Rotate In Bottom Left Corner
  • Rotate In Bottom Right Corner
  • No Animation
Overlay Duration

This value determines how long the animation will take to complete. A larger value here translates to a slower animation.

Overlay Easing

In real life most objects don’t just start and stop instantly, and rarely move at a constant speed. The Easing setting allows us to apply some of this real world feel to our animated objects. We've provided several styles to help you get the feeling you are after.

Image Mode

Allows you to choose the animation style that will be applied to the Background Image itself. This animation is executed when the visitor hovers thier mouse cursor over Whimsy. Choosing No Animation here will disable the animation, but does not affect the remaining animation effects.

  • Zoom In
  • Zoom In Rotate Left
  • Zoom In Rotate Right
  • Zoom Out
  • Push Up
  • Push Down
  • Push Left
  • Push Right
  • Blur
  • Grayscale
  • Grayscale Reverse
  • Sepia
  • No Animation
Image Duration

This value determines how long the animation will take to complete. A larger value here translates to a slower animation.

Image Easing

In real life most objects don’t just start and stop instantly, and rarely move at a constant speed. The Easing setting allows us to apply some of this real world feel to our animated objects. We've provided several styles to help you get the feeling you are after.

Content Mode

Allows you to choose the animation style that will be applied to the Content inside of Whimsy. This animation is executed when the visitor hovers thier mouse cursor over Whimsy. Choosing No Animation here will disable the animation, but does not affect the remaining animation effects.

  • Fade In Top
  • Fade In Bottom
  • Fade In Left
  • Fade In Right
  • Zoom In
  • Zoom Out
  • No Animation
Content Duration

This value determines how long the animation will take to complete. A larger value here translates to a slower animation.

Content Easing

In real life most objects don’t just start and stop instantly, and rarely move at a constant speed. The Easing setting allows us to apply some of this real world feel to our animated objects. We've provided several styles to help you get the feeling you are after.

Indicator

Enable Indicator

When enabled a visual cue will be placed on the thumbnail image. This indicator lets the visitor know that the thumbnail can be hovered over to show more information.

Rounded Corners

Foundry provides 5 different presets for rounded corners. These can be found throughout Foundry's various tools. You're also able to remove the roundness of the corners by setting this to none, or provide your own custom value for the border radius, or rounded corners. When using Custom mode you can set a different value on each of the four corners. This setting also provides for a Circle setting as well.

Location

This setting determines where the indicator will be located. This location is relative to the thumbnail image. You can place the Indicator in the four corners of the thumbnail image or the very center of it.

Background Sizes

Here you can set the overall size of the Indicator's background container. You're given 6 different settings here — one for each of the responsive breakpoints.

Icon Sizes

Here you can set the size of the Indicator's icon. You're given 6 different settings here — one for each of the responsive breakpoints.

Icon

Allows you to choose from several preset icon choices for the Indicator.

Link

Link

Enabling this feature lets you add a link to your the entirety of Whimsy.

Link

Allows you to provide a link to a URL, whether it be an internal page or an external link.

Shadow

Shadow

Used to add a decorative shadow to this tool. Foundry provides a variety of preset shadow styles, as well as access to a user defined preset that you can configure in the Control Center. Additionally for one-off shadows there is also a custom shadow option where you can create a unique shadow style, setting its positioning, size, spread and color.

Hover Shadow

This setting can be used to apply a different shadow, or none at all, to a your image when the visitor hovers over the button on the page.

Animate Hover Shadow

When enabled a small transition animation, essentially a keyframe animation, will be applied to the image when the visitor hover over it. This will give the transistion from normal Shadow style to Hover Shadow style a bit more personality and visual interest.

Lazy Load

Lazy Load Image

Lazy loading images as the visitor scrolls down the page can improve page load times when you must use large images on your page. The feature uses HTML's native lazy loading property. This is supported by most modern web browsers.

Protect

Protect Against

While there's no 100% sure fire way to protect your's sites images from being downloaded, we do offer a couple of options that help dissuade visitors from doing so. You can choose to protect each individual image from being drag-and-dropped from the page onto the visitor's computer as well as prevent the visitor from being able to right-click on an image to save it.

HTML Comment

HTML Comment

Enabling this feature adds an HTML comment to the exported code to indicate the name of the tool being used here. This is helpful to both yourself and others when troubleshooting, or inspecting the code. This is enabled by default.

Custom

This field allows you to replace the default HTML Comment with your own text.

CSS

Classes

Allows you to specify an options class, or classes, that will be added to this tool's wrapper. You can use this to apply custom styling from the Blacksmith tool, or add a Bootstrap v5 preset class to your item. If you're applying more than one class be sure that you separate each class name with a space. Do not use special characters.