This post was last updated on May 13th, 2023 at 01:16 am
Hi Dev,
Today, i will show you social media icon with pop-up effect example. This article will give you simple example of social media icon with pop-up effect example. you will social media icon with pop-up effect example. In this article, we will implement a social media icon with pop-up effect example.
So, let’s follow few steps to create example of social media icon with pop-up effect example.
Example
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>social media icon with pop-up effect example - codeplaners</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> /* Auther: Abdelrhman Said */ @import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; } *:focus, *:active { outline: none !important; -webkit-tap-highlight-color: transparent; } html, body { display: grid; height: 100%; width: 100%; font-family: "Poppins", sans-serif; place-items: center; background: linear-gradient(315deg, #ffffff, #d7e1ec); } .wrapper { display: inline-flex; list-style: none; } .wrapper .icon { position: relative; background: #ffffff; border-radius: 50%; padding: 15px; margin: 10px; width: 50px; height: 50px; font-size: 18px; display: flex; justify-content: center; align-items: center; flex-direction: column; box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .wrapper .tooltip { position: absolute; top: 0; font-size: 14px; background: #ffffff; color: #ffffff; padding: 5px 8px; border-radius: 5px; box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .wrapper .tooltip::before { position: absolute; content: ""; height: 8px; width: 8px; background: #ffffff; bottom: -3px; left: 50%; transform: translate(-50%) rotate(45deg); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .wrapper .icon:hover .tooltip { top: -45px; opacity: 1; visibility: visible; pointer-events: auto; } .wrapper .icon:hover span, .wrapper .icon:hover .tooltip { text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1); } .wrapper .facebook:hover, .wrapper .facebook:hover .tooltip, .wrapper .facebook:hover .tooltip::before { background: #1877f2; color: #ffffff; } .wrapper .twitter:hover, .wrapper .twitter:hover .tooltip, .wrapper .twitter:hover .tooltip::before { background: #1da1f2; color: #ffffff; } .wrapper .instagram:hover, .wrapper .instagram:hover .tooltip, .wrapper .instagram:hover .tooltip::before { background: #e4405f; color: #ffffff; } .wrapper .github:hover, .wrapper .github:hover .tooltip, .wrapper .github:hover .tooltip::before { background: #333333; color: #ffffff; } .wrapper .youtube:hover, .wrapper .youtube:hover .tooltip, .wrapper .youtube:hover .tooltip::before { background: #cd201f; color: #ffffff; } </style> </head> <body> <ul class="wrapper"> <li class="icon facebook"> <span class="tooltip">Facebook</span> <span><i class="fa fa-facebook"></i></span> </li> <li class="icon twitter"> <span class="tooltip">Twitter</span> <span><i class="fa fa-twitter"></i></span> </li> <li class="icon instagram"> <span class="tooltip">Instagram</span> <span><i class="fa fa-instagram"></i></span> </li> <li class="icon github"> <span class="tooltip">Github</span> <span><i class="fa fa-github"></i></span> </li> <li class="icon youtube"> <span class="tooltip">Youtube</span> <span><i class="fa fa-youtube"></i></span> </li> </ul> </body> </html>
I hope it will assist you…