You can install the package via composer: composer require projektgopher/laravel-ffmpeg-tools Usageįor now this package can only be used within a Laravel app, but there are plans to extract the core functionality into a separate package that can be used without being bound to the framework. The stringification of these math strings is ported from This Gitlab repo Installation The API is modelled after The GreenSock Animation Platform (GSAP)Īnd all the math for the easings is ported from. The following example will output the exact same string as above, but imagine how much easier it'll be to change: $finalXpos = '(w*7/8)-text_w' This package allows you to build these string in a fluent way that's easily maintainable in a way that feels familiar to php and Laravel devs. How would you approach changing this to an easing of EaseOutBounce? Not gonna happen. It'll wait 5 seconds, animate the element from 200px left of its final position over 2 seconds with an easing of EaseOutElastic. This completely bonkers string will calculate just the x position of a text element.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |