.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #000;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
This Social Sharing Tooltip will Impress your Visitors (React & Tailwind)
Share this article with your friends:
const App = () => {
return (
This Social Sharing Tooltip will Impress your Visitors (React & Tailwind)
Share this article with your friends:
);
};
ReactDOM.render(, document.getElementById(‘root’));
Get fresh tutorials and other free content straight to your inbox! https://colbyfayock.com/news
Thanks Colby, I needed this video ❤
Outstanding as always
great video. I'm creating a Chrome extension and would like to add this feature for users to access on any website/page they go on.
I've seen it being done with other chrome extensions I use. How can this be implemented in the code?
Thank v. much… V. useful bit of code.
Thanks for sharing, it's very useful 🙂
Please don’t. I find that feature the most annoying part of Medium. I want to just use native copy functionality.