Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add triangle in top of dropdown content #4077

Closed
davodavodavo3 opened this issue Jan 8, 2017 · 3 comments
Closed

How to add triangle in top of dropdown content #4077

davodavodavo3 opened this issue Jan 8, 2017 · 3 comments

Comments

@davodavodavo3
Copy link

davodavodavo3 commented Jan 8, 2017

Its possible to add trangle , and to show it first ,not before dropdown content open Dogfalo?
There is javascript animation on dropdown.js if I'm not mistaken.
// Show dropdown

activates.stop(true, true).css('opacity', 0)
     .slideDown({
           queue: false,
           duration: curr_options.inDuration,
           easing: 'easeOutCubic',
           complete: function() {
             $(this).css('height', '');
           }
         })
   .animate( {opacity: 1}, {queue: false, duration: curr_options.inDuration, easing: 'easeOutSine'});

No one can't give the solution in stackoverflow.
Example:
https://jsfiddle.net/sj2tm8cd/20/

@Nohinn
Copy link

Nohinn commented Jan 16, 2017

Hello @davodavodavo3, I have updated your example (I don't know if this is what you were looking for):
https://jsfiddle.net/sj2tm8cd/39/

To sum up. Put display: none to your .dropdown-button::before CSS declaration. Then add this:
.dropdown-button.active::before {display: inline}

@davodavodavo3
Copy link
Author

Hello Nohinn))) I dont want to display none arrow taht is in the button, i wont to show arrow that is in the content menu top))))

@davodavodavo3
Copy link
Author

Thank you but I have found a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants