Declarative Element Size Observer And Provider For Vue.js

Description:

Sometimes you may want to animate an element height when its content is changed. In that case, you need to directly read height value from DOM because Virtual DOM cannot acquire element size. Since it is low-level manipulation, the code would become messier.

vue-size-provider solves this problem by hiding low-level code with abstract helper components – <SizeProvider> and <SizeObserver>.

Preview:

vue-size-provider

Download Details:

Author: ktsn

Live Demo: https://github.com/ktsn/vue-size-provider

Download Link: https://github.com/ktsn/vue-size-provider/archive/master.zip

Official Website: https://github.com/ktsn/vue-size-provider

Last Update: April 18, 2018

Install:

You Might Be Interested In:

Add Comment