Intro
Premium Image Button Widget for Elementor allows you to create interactive buttons with an image background. There are a lot of customization options that allow to take full control over the button and make it interactive.
Click here to check Premium Image Button Widget demo.
Requirements
- Image Button is a free widget. You only need Premium Addons for Elementor installed and activated.
- Make sure the addon is enabled so it shows up in the Elementor editor.
- Premium Addons works with the Elementor Page Builder plugin, so you will need that installed and activated as well.
- The Draw Icon option and everything under it depend on the SVG Draw feature being enabled for this widget from the Premium Addons dashboard. When it is off, the Draw Icon switcher is still visible but greyed out and cannot be clicked, the controls beneath it are not registered at all, and a notice appears explaining how to turn the feature on.
Key Features
- Text
- Link Type
- Hover Effect
- Icon [Enable/Disable]
- Icon Type: Icon, Lottie Animation or SVG Code
- Draw Icon
- Button Size
- Button Alignment
- onClick Event
Content
Button
- Text: Enter button text in the text box that will be displayed on the button e.g. Click Me.
- Link Type: Add button’s link whether if it was a custom URL or you can add an existing page link.
- Link: Enter the URL in the text box.
- Check “Open in New Window” box if you want the link to be opened in a new tab.
- Check “Add Nofollow” if you don’t want your page to be indexed by search engines.
- Existing Page: Shown when Link Type is set to Existing Page. Search for a post or a page and pick it from the list.
Hover Effect
Choose the hover effect for the button. Each effect brings its own set of options, so the panel changes when you switch between them.
- None
- Background Slide: Slide Direction can be Top to Bottom, Bottom to Top, Right to Left or Left to Right.
- Diagonal Slide: Slide Direction can be Bottom Left to Top Right, Top Right to Bottom Left, Top Left to Bottom Right or Bottom Right to Top Left.
- Icon Slide: Slide Direction can be Bottom to Top, Top to Bottom, Left to Right or Right to Left. This effect replaces the button icon with its own icon set, covered below.
- Overlap: Overlap Direction can be Horizontal or Vertical.
- Grow: a circle grows out from the button on hover.
- Grow Layer Size: Set the size of the growing layer in pixels.
- Grow Animation Speed (Sec): Set how long the growth takes, from 0 to 3 seconds.
- Detect Mouse Position: Enable this option to trigger the grow effect from the mouse position on the button. Turning it on hides Grow Layer Size and Grow Animation Speed, because the layer is then sized and positioned from the cursor.
- Animated Underline: draws a line under the button text on hover.
Animated Underline adds the following options. Which of them appear depends on the style you pick, since not every line style uses every value.
- Underline Style: Choose one of seven line styles, Style 1 to Style 7.
- Line Width (%): Set the width of the line as a percentage. Available for Style 1, Style 3 and Style 5.
- Line Height (PX): Set the thickness of the line in pixels. Available for every style except Style 1, Style 3 and Style 4.
- Line Horizontal Position (%): Move the line left or right. Available for Style 3 and Style 5.
- Line Vertical Position (%): Move the line up or down. Available for every underline style.
Icon
Enable or disable the button icon. This switcher is hidden when the hover effect is set to Icon Slide, which brings its own icon options instead.
- Icon Type: Choose between Icon, Lottie Animation and SVG Code.
- Icon: Shown for the Icon type. Pick an icon from the Elementor icon library.
- SVG Code: Shown for the SVG Code type. Paste your SVG markup into the text area.
- Animation JSON URL: Shown for the Lottie Animation type. Paste the JSON URL of a Lottie file.
The Lottie Animation type adds playback options.
- Loop: Play the animation on repeat. Enabled by default.
- Reverse: Play the animation backwards.
- Only Play on Hover: Hold the animation until the visitor hovers the button. This one only appears when the SVG Draw feature is enabled for the widget; Loop and Reverse do not depend on it.
Draw Icon
Enable this option to make the icon draw itself instead of appearing all at once. It works with the Icon and SVG Code types, and it is hidden when the chosen icon comes from the SVG library rather than an icon font. See the tutorial for a walkthrough.
- Path Thickness: Set the stroke thickness of the icon paths, from 0 to 50. Shown for the Icon and SVG Code types. It does not need the Draw Icon switcher to be on, but like the rest of this group it only exists while the SVG Draw feature is enabled.
- Draw All Paths Together: Draw every path at the same time instead of one after another.
- Speed: Set the animation duration, from 1 to 100. A larger value means a longer animation.
- Loop: Draw the icon on repeat.
- Reverse: Draw the icon backwards.
- Start Point (%): Set the point the drawing starts from. Shown while Reverse is off.
- End Point (%): Set the point the drawing ends at. This replaces Start Point once Reverse is enabled.
- Only Play on Hover: Hold the drawing until the visitor hovers the button.
- Yoyo Effect: Draw the icon forwards then backwards on each cycle. Needs Loop enabled.
Icon Slide options
Choosing Icon Slide as the hover effect swaps the icon controls above for a separate set. There is no SVG Code option here.
- Icon Type: Choose between Icon and Lottie Animation.
- Icon: Pick an icon from the Elementor icon library.
- Animation JSON URL: Paste the JSON URL of a Lottie file when the type is Lottie Animation.
- Loop and Reverse: Playback options for the Lottie animation.
- Icon Size: Set the size of the sliding icon in px, em or vw.
Icon layout and button size
- Icon Position: Set the icon position, before or after the button text.
- Icon Size: Set the size of the icon in px, em or vw. You can drag the slider or enter a value.
- Icon Spacing: Set the space between the icon and the text.
- Size: Set the size of the button. You can choose between Small, Medium, Large and Block.
- Alignment: Set the button alignment to left, center or right. Hidden when Size is set to Block, since a block button fills its container.
- onclick Event: Use this option if you want to add custom functionality to the button. Enabling it reveals a code field labelled Example: myFunction(); where you add the javascript or jquery. This option is only available to users who can manage site options.
Style
Button
- Width: Set a fixed button width in px, %, vw or a custom value. Hidden when Size is set to Block.
- After Draw Fill Color: Set the colour the icon fills with once the draw animation finishes. Shown while Draw Icon is enabled.
- Typography: Set the typography of the text in the button.
Below these you will find a Normal tab and a Hover tab. Click either one to style that state of the button.
Normal
- Text Color: Select a color for the button text.
- Icon Color: Set the color of the icon. Available when Icon Type is set to Icon.
- Stroke Color: Set the colour of the icon outline. Available for the Icon and SVG Code types, and not shown for the Diagonal Slide or Icon Slide hover effects. Present only while the SVG Draw feature is enabled.
- Background Type: Select the background type. You can choose from classic or gradient.
- In the classic tab, you can set the background color or you can upload an image or select from the media library. There are different options to set the styling of the image such as its position, repeat, and size.
- In the gradient tab, you have different options such as setting the colors, gradient location, gradient angle, etc.
- Border Type: Add a border around the button and set its style, width and color.
- Border Radius: Increasing the border radius will add circular corners to the button container. You can adjust the border radius in pixels, % or em.
- Advanced Border Radius: Apply custom radius values for the button. Get the radius value from here. Enabling this replaces the Border Radius slider with a text field you paste the value into.
- Icon Shadow: Add a shadow to the icon. Available when Icon Type is set to Icon.
- Text Shadow: Add a shadow to the button text.
- Button Shadow: Add a shadow around the button. Adjust the shadow using horizontal position, vertical position, blur, spread, and position type of outline or inset.
- Margin: Margin is the space between the button container and the rest of the content. Adjust the margins in pixels, em, %, vw or a custom value.
- Padding: Padding is the space between the button text and the edge of the button container. Increasing the padding will make the button larger.
Hover
The Hover tab repeats most of the Normal tab so you can style the hovered state separately. It also carries the options belonging to whichever hover effect you picked on the Content tab, and those sit in among the ordinary colour controls rather than in a group of their own.
Picking the Grow effect puts a notice at the top of this tab. A hover image background does not sit well with a layer that grows out from a point, so a solid colour or a gradient is the better choice there.
- Text Color: Select a color for the button text on hover. Not shown for the Icon Slide effect, which covers the text with the sliding icon.
- Icon Color: Set the icon color on hover. Available when Icon Type is set to Icon.
- Line Color: Set the colour of the underline. Shown for the Animated Underline effect.
- Stroke Color: Set the icon outline color on hover. Shown for the Icon and SVG Code types and hidden for the Icon Slide effect, and present only while the SVG Draw feature is enabled.
- Icon Color: A second Icon Color, this one for the sliding icon. Shown for the Icon Slide effect when its Icon Type is set to Icon, so it disappears if the sliding icon is a Lottie animation.
- Overlay Color: Set the colour of the sliding overlay. Shown for the Diagonal Slide and Overlap effects, which each have their own copy of this control.
- Background Type: Set the classic or gradient background used on hover.
The three effect specific colours look like this in the panel.
- Border Type, Border Radius and Advanced Border Radius: The same border options as the Normal tab, applied on hover.
- Icon Shadow: Add a shadow to the icon on hover. Available when Icon Type is set to Icon.
- Icon Shadow: A second Icon Shadow for the sliding icon, shown for the Icon Slide effect when its Icon Type is set to Icon.
- Text Shadow: Add a shadow to the button text on hover. Not shown for the Icon Slide effect.
- Button Shadow: Add a shadow around the button on hover.
- Margin and Padding: Spacing values applied on hover.
Join the Community
Got a question about Premium Image Button, or built something with it you want to show off? Come say hello.