"Menu" to "Close" Text Transition
I came across a neat menu transition effect, where they replace the "menu" text with the "close" text, I found it on this site - simple.com. This happens on mobile. As well as, I have a GIF of the effect above. I'm trying to replicate the same exact effect they have.
Does anybody know how I might do this? I would like to do this using HTML, CSS, and Javascript/or jQuery.
I do not have any code to show. Due to a lack of knowledge in Javascript and jQuery. Therefore, I do not even know how to describe what's going on, and what effect/transition I'm looking for it to do.
Answers 1
Given you know the website, and you want the same effect. You can simply inspect the element, copy its
html
and itscss
. Then watch what happens when you click the element to know what JS to apply.This is literally copy-pasted from their source code, pretty simple(.com) if you ask me :).