123
user profile image

Quickly created a configurable Material Design menu button via SCSS.

Comments

  1. A quick bug in the eye: everything in the click handler can be cut down to $(this).toggleClass('material--arrow'); FYI :-)

  2. what is the purpose of $hasBackground? I removed the variable and all the if statements and it still works

  3. @malydok yeah, you're right, fixed it, thanks!

  4. @diginhecos The purpose of $hasBackground is that you can choose whether the button has a background with a solid color or it has no background (transparent).

  5. Changes: - removed alsolike() for better preview when modifying this pen - use toggleClass()

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...