Posted 9 апреля, 20231 yr comment_191940 HTML <div class="social-btns"> <a class="btn facebook" href="https://www.facebook.com/"><i class="fa fa-facebook"></i></a> <a class="btn instagram" href="https://www.instagram.com/"><i class="fa fa-instagram"></i></a> <a class="btn youtube" href="https://www.youtube.com/c/"><i class="fa fa-youtube"></i></a> </div> CSS: .social-btns { height: 40px; margin: auto; font-size: 0; text-align: center; position: absolute; top: -75px; bottom: 0; left: 0; right: 0; } .social-btns .btn { display: inline-block; background-color: #fff; width: 40px; height: 40px; line-height: 40px; margin: 0 10px; text-align: center; position: relative; overflow: hidden; border-radius: 28%; box-shadow: 0 5px 15px -5px rgba(0,0,0,0.1); opacity: 0.99; } .social-btns .btn, .social-btns .btn:before, .social-btns .btn .fa { transition: all 0.35s; transition-timing-function: cubic-bezier(0.31, -0.105, 0.43, 1.59); } .social-btns .btn:before { content: ''; width: 120%; height: 120%; position: absolute; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .social-btns .btn:before { top: 90%; left: -110%; } .social-btns .btn.facebook:before { background-color: #3b5998; } .social-btns .btn.facebook .fa { color: #3b5998; } .fa.fa-facebook:before { content: "\f39e"; } .social-btns .btn.instagram:before { background-color: #de416a; } .social-btns .btn.instagram .fa { color: #de416a; } .fa-instagram:before { content: "\f16d"; } .social-btns .btn.youtube:before { background-color: #cc332d; } .social-btns .btn.youtube .fa { color: #cc332d; } .fa-youtube:before { content: "\f167"; } Credit to Pegazz Edited 9 апреля, 20231 yr by MrHaim Link to comment https://ipbmafia.ru/topic/25465-html-kod-na-socialnyh-ikonkah-html-code-on-social-icons/ Share on other sites Больше вариантов
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.