Jump to content

vauclusebitter

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by vauclusebitter

  1. Sorry for what might seem like a silly question, how do I share a link to an individual text block? Just so you know where I'm at, I've currently got a code block with: <div id="hover-div"> example.before <span id="hover-element"> example.after </span> </div> and CSS: #hover-element { display: none; position: absolute; top: 0px } #hover-div:hover #hover-element { display:block } Which makes new text appear over the original on hover but can't seem to simultaneously hide the original so it's just doubled up. Thanks again.
  2. I'm trying to make the content of a text box change when hovered above and then revert back to the original text when mouse is moved away again. E.g. I would like the text box to change from: example.before to example.after (on hover) to example.before Essentially only half the text will change, the word 'example' would always stay as is. There seem to be a few tutorials on how to do this with an image block or text appearing over an image with basic CSS but not with text on text. I could do a workaround with images of the text but would prefer not keep clean, aligned and easily editable. I've found CSS to make the new text appear over the original on hover but can't seem to simultaneously hide the original so it's just doubled up. If anyone can link me to a tutorial or have any ideas - please send them through. Thanks in advance.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.