Lien d’origine: https://codepen.io/Krishnaa_Gupta/pen/MWoRqmr
HTML:
- <center><section class="glowing_icons">
- <i class="fab fa-linkedin fa-4x" id="linkedin"></i>
- <i class="fab fa-twitter fa-4x" id="twitter"></i>
- <i class="fab fa-facebook-square fa-4x" id="facebook"></i>
- <i class="fab fa-youtube-square fa-4x" id="youtube"></i>
- <i class="fab fa-whatsapp fa-4x" id="whatsapp"></i>
- <i class="fab fa-pinterest-square fa-4x" id="pinterest"></i>
- <i class="fa fa-envelope-square fa-4x" id="mail"></i>
- </section></center>
CSS:
- .glowing_icons #linkedin,
- .glowing_icons #twitter,
- .glowing_icons #facebook,
- .glowing_icons #youtube,
- .glowing_icons #whatsapp,
- .glowing_icons #pinterest,
- .glowing_icons #mail {
- background-color: #18191f;
- color: #fff;
- box-shadow: 2px 2px 2px #00000080, 10px 1px 12px #00000080,
- 2px 2px 10px #00000080, 2px 2px 3px #00000080, inset 2px 2px 10px #00000080,
- inset 2px 2px 10px #00000080, inset 2px 2px 10px #00000080,
- inset 2px 2px 10px #00000080;
- border-radius: 29px;
- padding: 11px 19px;
- margin: 10px;
- animation: animate 3s linear infinite;
- text-shadow: 0 0 50px #0072ff, 0 0 100px #0072ff, 0 0 150px #0072ff,
- 0 0 200px #0072ff;
- }
- .glowing_icons #twitter {
- animation-delay: 0.3s;
- }
- .glowing_icons #facebook {
- animation-delay: 0.7s;
- }
- .glowing_icons #github {
- animation-delay: 0.1s;
- }
- @keyframes animate {
- from {
- filter: hue-rotate(0deg);
- }
- to {
- filter: hue-rotate(360deg);
- }
- }