joeldbirch / superfish

Superfish is a jQuery plugin that adds usability enhancements to existing multi-level drop-down menus.
Other
912 stars 315 forks source link

Can i use "Transit" plugin features with Superfish? #162

Open MoradHamdy opened 8 years ago

MoradHamdy commented 8 years ago

Hello there,

"Transit" plugin provides transitions & transformations with jquery. If possible, how i can extend Superfish animation effects using this plugin?

ghost commented 7 years ago

@MoradHamdy If you load Transit between jquery and superfish (e.g. how you would add hoverIntent) it seems to work. What was your experience? Here's how I'm doing it:

fetchInject([
  '/assets/js/main.js'
], fetchInject([
  '/assets/js/vendor/superfish.min.js'
], fetchInject([
  '/assets/js/vendor/jquery.transit.min.js',
  '/assets/js/vendor/jquery.hoverIntent.js'
], fetchInject([
  '/assets/js/vendor/jquery.min.js'
]))))

Which downloads everything in parallel without causing any race conditions.

superfish

https://github.com/jhabdas/fetch-inject