Day Cat Tmall Category menu Effects

Source: Internet
Author: User

We all know the day Cat mall style has been changing, we have been imitating, Taobao walk in the electronic mall design trend ...

Just like this menu, presumably everybody wants to know how to achieve, today we also try to do.

I wrote Li in HTML, with div,fllist in it, set to none, to implement the pop-up window ... The effect of this menu is scrolling, the menu will be folded in layers

I made the judgment in the script, when ScrollTop is bigger than a certain value, the following menu will fold up, write one by one, feel very rigid, hehe ... We all know that this kind of writing, for IE6, can only be ineffective, so, under IE6, we are scrolling after it has been unfolded ... In this way, it seems that there is no difficulty, but we deal with the details, no day cat do well ah ... As for the above unfolded display and the streamlining display, I was through addclass and removeclass to achieve ...

Here's a screenshot of the results I've created:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.