Open/Close Side Menu
Search
Close
vi-VNen-US
Search
21 Tháng Mười Một 2024

Custom Buttons

Custom Buttons

<a href="#" class="eds_btn">Default</a>
<a href="#" class="eds_btn eds_btnPrimary">Primary</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>

Transparent

<a href="#" class="eds_btn eds_btnTransparent">Default</a>
<a href="#" class="eds_btn eds_btnTransparent eds_btnPrimary">Primary</a>
<a href="#" class="eds_btn eds_btnTransparent eds_btnSuccess">Success</a>
<a href="#" class="eds_btn eds_btnTransparent eds_btnInfo">Info</a>
<a href="#" class="eds_btn eds_btnTransparent eds_btnWarning">Warning</a>
<a href="#" class="eds_btn eds_btnTransparent eds_btnDanger">Danger</a>

Small size

<a href="#" class="eds_btn eds_btnSmall">Default</a>
<a href="#" class="eds_btn eds_btnPrimary eds_btnSmall">Primary</a>
<a href="#" class="eds_btn eds_btnSuccess eds_btnSmall">Success</a>
<a href="#" class="eds_btn eds_btnInfo eds_btnSmall">Info</a>
<a href="#" class="eds_btn eds_btnWarning eds_btnSmall">Warning</a>
<a href="#" class="eds_btn eds_btnDanger eds_btnSmall">Danger</a>

Large size

<a href="#" class="eds_btn eds_btnLarge">Default</a>
<a href="#" class="eds_btn eds_btnPrimary eds_btnLarge">Primary</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>

Slide button

VivamusNulla blandit efficitur.
<a href="#" class="eds_btn eds_btnSuccess eds_btnLarge eds_slideButton">Vivamus<span class="eds_hoverContent">Nulla blandit efficitur.</span></a>
VivamusNulla blandit efficitur.
<a href="#" class="eds_btn eds_btnDanger eds_slideButton">Vivamus<span class="eds_hoverContent">Nulla blandit efficitur.</span></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>

Light Style

<div class="eds_faButtons eds_lightStyle">
<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>

Small Size

<div class="eds_faButtons eds_smallSize">
<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 "Rich text" editor can mix up " (double quotes) or ' (single qoute).

<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

LinearMoves at the same speed from start to finish.

  • Linear

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
Back To Top