Default
Success
Info
Warning
Danger
<a href="#" class="eds_btn">Default</a>
<a href="#" class="eds_btn eds_btnSuccess">Success</a>
<a href="#" class="eds_btn eds_btnInfo">Info</a>
<a href="#" class="eds_btn eds_btnWarning">Warning</a>
<a href="#" class="eds_btn eds_btnDanger">Danger</a>
Large size
Default
Success
Info
Warning
Danger
<a href="#" class="eds_btn eds_btnLarge">Default</a>
<a href="#" class="eds_btn eds_btnSuccess eds_btnLarge">Success</a>
<a href="#" class="eds_btn eds_btnInfo eds_btnLarge">Info</a>
<a href="#" class="eds_btn eds_btnWarning eds_btnLarge">Warning</a>
<a href="#" class="eds_btn eds_btnDanger eds_btnLarge">Danger</a>
Font Awesome Buttons
<div class="eds_faButtons">
<a href="facebook.com">
<span class="fab fa-facebook-square"></span>
</a>
<a href="twitter.com">
<span class="fab fa-twitter-square"></span>
</a>
<a href="plus.google.com">
<span class="fab fa-google-plus-square"></span>
</a>
<a href="linkedin.com">
<span class="fab fa-linkedin-square"></span>
</a>
<a href="pinterest.com">
<span class="fab fa-pinterest-square"></span>
</a>
</div>
Inverted version
<div class="eds_faButtons eds_invertIcons">
<a href="facebook.com">
<span class="fab fa-facebook-square"></span>
</a>
<a href="twitter.com">
<span class="fab fa-twitter-square"></span>
</a>
<a href="plus.google.com">
<span class="fab fa-google-plus-square"></span>
</a>
<a href="linkedin.com">
<span class="fab fa-linkedin-square"></span>
</a>
<a href="pinterest.com">
<span class="fab fa-pinterest-square"></span>
</a>
</div>
"Scroll to ..." Buttons
Default usage
Example link
<a class="eds_scrollTo" href="#exampleID">Example link</a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown" href="#exampleID"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown eds_small" href="#exampleID"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp" href="#"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp eds_small" href="#"><span>Example Link</span></a>
Advanced (data-options attribute)
Use the HTML editor in the "Basic text" mode (HTML render mode) because some editors can switch
"
(
double quotes) or
'
(
single qoute) signs to the "Rich text" mode.
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown" href="#exampleID" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown eds_small" href="#exampleID" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp" href="#" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp eds_small" href="#" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
Options
- "speed": 700 // How fast to complete the scroll in milliseconds
- "easing": "easeOutQuint" // Easing pattern to use
- "offset": 500 // How far to offset the scrolling anchor location in pixels
- "updateURL": false // If true, change link in browser window address bar
- "scrollOnLoad": true, // If true, animate to anchor on page load if URL has a hash
Easing Options
Linear
Moves at the same speed from start to finish.
Ease-In
Gradually increases in speed.
-
easeInQuad
-
easeInCubic
-
easeInQuart
-
easeInQuint
Ease-In-Out
Gradually increases in speed, peaks, and then gradually slows down.
-
easeInOutQuad
-
easeInOutCubic
-
easeInOutQuart
-
easeInOutQuint
Ease-Out
Gradually decreases in speed.
-
easeOutQuad
-
easeOutCubic
-
easeOutQuart
-
easeOutQuint
DNN Buttons
PrimaryAction
SecondaryAction
TertiaryAction
<a class="dnnPrimaryAction" href="#">PrimaryAction</a>
<a class="dnnSecondaryAction" href="#">SecondaryAction</a></p>
<a href="#" class="dnnTertiaryAction">TertiaryAction</a>