lockets

hover using element id

Apr 8th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <style>
  2. <!-- select the text that you want to have float animation on hover for, go to the settings, type a name in for the id i.e #txt, then create an embed, copy paste this and make sure both hashtags are the same as the text id -->
  3. <!-- if your are using a custom cursor change cursor:default; to cursor:url(link here); -->
  4.  
  5. #txt a {
  6. display: inline-block;
  7. transition: .2s ease;
  8. }
  9. #txt a:hover {
  10. transform: translateY(-20%);
  11. cursor:default;
  12. }
  13. </style>
Advertisement
Add Comment
Please, Sign In to add comment