OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Create a Floating MonsterLink

How to Create a Floating MonsterLink

Using OptinMonster’s MonsterLink feature, you can also create a floating MonsterLink uniquely styled.

In this article, you’ll learn how to create a floating MonsterLink button that closes once it’s clicked on.

Floating MonsterLinks can help grab the attention of website visitors and increase campaign conversions.

Before You Start

Here are some things to know before you begin:

Example 1

In this first example, we’ll create a floating MonsterLink that slides in from the right side of the screen.

A blue floating MonsterLink call-to-action.

The HTML

Since the position of the Floating MonsterLink is set to absolute you can add the HTML anywhere in the body of your page.

The CSS

RECOMMENDED: If the site’s body element doesn’t already include overflow: hidden; in its CSS styles we recommend you add this to prevent scrollbars from appearing when the Floating MonsterLink animates into and out of view.

[css]body {
overflow: hidden !important;
}[/css]
The Javascript

We’re going to use some jQuery animations to smoothly transition the Floating MonsterLink into view, and the OptinMonster Javascript Events API to hide the Floating MonsterLink once the visitor selects the MonsterLink to open the campaign.

Be sure to load the jQuery library on your site before implementing the following code.

Example 2

In this second example, we’ll create a floating MonsterLink that slides in from the left side of the screen.

A red floating MonsterLink call-to-action.

The HTML

Since the position of the Floating MonsterLink is set to absolute you can add the HTML anywhere in the body of your page.

The CSS

RECOMMENDED: If the site’s body element doesn’t already include overflow: hidden; in its CSS styles we recommend you add this to prevent scrollbars from appearing when the Floating MonsterLink animates into and out of view.

[css]body {
overflow: hidden !important;
}[/css]
Step 3 – The JavaScript

We’re going to use some jQuery animations to smoothly transition the Floating MonsterLink into view, and the OptinMonster Javascript Events API to hide the Floating MonsterLink once the visitor selects the MonsterLink to open the campaign.

Be sure to load the jQuery library on your site before implementing the following code.

Embedding the Campaign

Be sure to embed the campaign wherever you plan to display the Floating MonsterLink according to our MonsterLinks documentation.

In the examples in this article, we created a Lightbox campaign, but you can manually trigger any popup type campaign.

Download the PSD Files

You can optionally download the original PSDs used to create our demo Floating MonsterLinks from the following links:

Download the Style 1 PSD FileDownload the Style 2 PSD File


Still stuck?

How can we help?

Last updated on


Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com