The bottom navigation bar style switch effect, as shown in how to write?

clipboard.png

what should I do with the pop-up here? Is it safer?
the current idea is:
scenario 1: display:block/none attributes clicked by the js control module
scenario 2: js dynamically creates the content in the red box that appears when clicked

I don"t have much experience, and I hope you can give me some suggestions or ideas. Thank you very much ~ ^ _ ^

Apr.08,2021

scenario 1, or change the overflow property of the click button area


it depends on what effect you want. Don't consider option two.

if you want to fade out (in conjunction with controlling the opacity property) or suddenly appear, option 1 can achieve
if you want to do a button to float, use js to control the translate of css.

Menu