• .
  • Chúc mừng giánh sinh và năm mới 2025
  • Smallrig phu kien ho tro quay gan gimbal rs3 rs2 rsc2.jpg
  • Balo túi đeo PGYTECH 3L 4L 6L 10L 11L 22L 25L 35L
  • Tilta Phụ kiện các loại giá tốt nhất
  • Hỗ trợ book Xanh SM giao liền

Creative Link Effects - Tạo hiệu ứng link

  Link down và demo, các bạn xem hướng dẫn để tích hợp lên website nếu thấy hữu ích ! Happy day !

Please note that pseudo-element transitions don’t work in every browser. Best viewed in Chrome and Firefox.

In most cases the HTML is simply a nav with some anchors:

1
2
3
4
5
6
7
<nav class="cl-effect-13">
    <a href="#">Beleaguera>
    <a href="#">Lassitudea>
    <a href="#">Murmurousa>
    <a href="#">Palimpsesta>
    <a href="#">Assemblagea>
nav>

But for some special effects we might use a data attribute for repeating the link text in the pseudo-element:

1
2
3
4
5
6
7
<nav class="cl-effect-11">
    <a href="#" data-hover="Desultory">Desultorya>
    <a href="#" data-hover="Sumptuous">Sumptuousa>
    <a href="#" data-hover="Scintilla">Scintillaa>
    <a href="#" data-hover="Propinquity">Propinquitya>
    <a href="#" data-hover="Harbinger">Harbingera>
nav>

We might also use a span in some cases because we want to add perspective to each item or achieve another effect.

1
2
3
4
5
6
7
<nav class="cl-effect-10">
    <a href="#" data-hover="Seraglio"><span>Seragliospan>a>
    <a href="#" data-hover="Sumptuous"><span>Sumptuousspan>a>
    <a href="#" data-hover="Scintilla"><span>Scintillaspan>a>
    <a href="#" data-hover="Palimpsest"><span>Palimpsestspan>a>
    <a href="#" data-hover="Assemblage"><span>Assemblagespan>a>
nav>

An example for an effect is the following style. It positions a pseudo-element on top of the actual link text and on hover, we’ll make the pseudo-element disappear by scaling it down and making it fade out (structure as in the second html block):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Effect 15: scale down, reveal */
.cl-effect-15 a {
    color: rgba(0,0,0,0.2);
    font-weight: 700;
    text-shadow: none;
}
 
.cl-effect-15 a::before {
    color: #fff;
    content: attr(data-hover);
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}
 
.cl-effect-15 a:hover::before,
.cl-effect-15 a:focus::before {
    transform: scale(0.9);
    opacity: 0;
}

We hope this collection gives you some inspiration for creating some nice effects.

Please note that IE10 doesn’t support transform-style: preserve-3d, a property that is used in some of the examples. Since we can’t test for it yet using Modernizr you can try to use one of the suggested solutions for detecting IE10.

I hope you enjoyed these link effects and find them inspiring!

View demo Download source

Share facebookShare facebook

Tin Cùng Chuyên Mục

Trang 1 / 1

Bạn đã đọc tin này chưa ?

Go Top
Chat hỗ trợ
Chat ngay