vevet 1.4.27 → 2.0.1-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +7 -71
- package/build/cdn/index.js +12 -0
- package/build/cdn/index.js.LICENSE.txt +14 -0
- package/build/cjs/app/Application.js +297 -0
- package/build/cjs/app/events/PageLoad.js +74 -0
- package/build/cjs/app/events/Viewport.js +303 -0
- package/build/cjs/base/Callbacks.js +232 -0
- package/build/cjs/base/Component.js +56 -0
- package/build/cjs/base/Module.js +262 -0
- package/build/cjs/base/MutableProp.js +165 -0
- package/build/cjs/base/Plugin.js +56 -0
- package/build/cjs/components/animation-frame/AnimationFrame.js +183 -0
- package/build/cjs/components/canvas/Ctx2D.js +200 -0
- package/build/cjs/components/canvas/Ctx2DPrerender.js +72 -0
- package/build/cjs/components/cursor/CustomCursor.js +344 -0
- package/build/cjs/components/dragger/Dragger.js +229 -0
- package/build/cjs/components/dragger/DraggerDirection.js +77 -0
- package/build/cjs/components/dragger/DraggerMove.js +84 -0
- package/build/cjs/components/loading/Preloader.js +229 -0
- package/build/cjs/components/loading/ProgressPreloader.js +377 -0
- package/build/cjs/components/page/Page.js +353 -0
- package/build/cjs/components/scroll/custom-scroll/CustomScroll.js +517 -0
- package/build/cjs/components/scroll/plugins/SmoothScrollDragPlugin.js +178 -0
- package/build/cjs/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +138 -0
- package/build/cjs/components/scroll/scrollable/ScrollEventsBase.js +133 -0
- package/build/cjs/components/scroll/scrollable/ScrollView.js +315 -0
- package/build/cjs/components/scroll/scrollbar/Bar.js +315 -0
- package/build/cjs/components/scroll/scrollbar/ScrollBar.js +206 -0
- package/build/cjs/components/scroll/smooth-scroll/SmoothScroll.js +625 -0
- package/build/cjs/components/scroll/types.js +2 -0
- package/build/cjs/components/split-text/SplitText.js +233 -0
- package/build/cjs/components/text/SplitText.js +329 -0
- package/build/cjs/components/timeline/StaticTimeline.js +137 -0
- package/build/cjs/components/timeline/Timeline.js +190 -0
- package/build/cjs/index.js +87 -0
- package/build/cjs/utils/common/index.js +12 -0
- package/build/cjs/utils/common/mergeWithoutArrays.js +19 -0
- package/build/cjs/utils/common/randID.js +11 -0
- package/build/cjs/utils/common/timeoutCallback.js +17 -0
- package/build/cjs/utils/errors.js +8 -0
- package/build/cjs/utils/listeners/index.js +10 -0
- package/build/cjs/utils/listeners/intersectionObserverSupported.js +11 -0
- package/build/cjs/utils/listeners/onScroll.js +47 -0
- package/build/cjs/utils/math/boundVal.js +16 -0
- package/build/cjs/utils/math/index.js +12 -0
- package/build/cjs/utils/math/lerp.js +15 -0
- package/build/cjs/utils/math/scopeProgress.js +25 -0
- package/build/cjs/utils/types/general.js +2 -0
- package/build/cjs/utils/types/utility.js +2 -0
- package/build/es/app/Application.js +210 -0
- package/build/es/app/events/PageLoad.js +47 -0
- package/build/es/app/events/Viewport.js +232 -0
- package/build/es/base/Callbacks.js +205 -0
- package/build/es/base/Component.js +32 -0
- package/build/es/base/Module.js +225 -0
- package/build/es/base/MutableProp.js +152 -0
- package/build/es/base/Plugin.js +31 -0
- package/build/es/components/animation-frame/AnimationFrame.js +145 -0
- package/build/es/components/canvas/Ctx2D.js +133 -0
- package/build/es/components/canvas/Ctx2DPrerender.js +37 -0
- package/build/es/components/cursor/CustomCursor.js +274 -0
- package/build/es/components/dragger/Dragger.js +175 -0
- package/build/es/components/dragger/DraggerDirection.js +42 -0
- package/build/es/components/dragger/DraggerMove.js +56 -0
- package/build/es/components/loading/Preloader.js +164 -0
- package/build/es/components/loading/ProgressPreloader.js +304 -0
- package/build/es/components/page/Page.js +283 -0
- package/build/es/components/scroll/custom-scroll/CustomScroll.js +486 -0
- package/build/es/components/scroll/plugins/SmoothScrollDragPlugin.js +140 -0
- package/build/es/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +109 -0
- package/build/es/components/scroll/scrollable/ScrollEventsBase.js +79 -0
- package/build/es/components/scroll/scrollable/ScrollView.js +264 -0
- package/build/es/components/scroll/scrollbar/Bar.js +262 -0
- package/build/es/components/scroll/scrollbar/ScrollBar.js +152 -0
- package/build/es/components/scroll/smooth-scroll/SmoothScroll.js +519 -0
- package/build/es/components/scroll/types.js +1 -0
- package/build/es/components/split-text/SplitText.js +199 -0
- package/build/es/components/text/SplitText.js +270 -0
- package/build/es/components/timeline/StaticTimeline.js +92 -0
- package/build/es/components/timeline/Timeline.js +141 -0
- package/build/es/index.js +37 -0
- package/build/es/utils/common/index.js +4 -0
- package/build/es/utils/common/mergeWithoutArrays.js +13 -0
- package/build/es/utils/common/randID.js +7 -0
- package/build/es/utils/common/timeoutCallback.js +14 -0
- package/build/es/utils/errors.js +5 -0
- package/build/es/utils/listeners/index.js +3 -0
- package/build/es/utils/listeners/intersectionObserverSupported.js +8 -0
- package/build/es/utils/listeners/onScroll.js +44 -0
- package/build/es/utils/math/boundVal.js +12 -0
- package/build/es/utils/math/index.js +4 -0
- package/build/es/utils/math/lerp.js +11 -0
- package/build/es/utils/math/scopeProgress.js +22 -0
- package/build/es/utils/types/general.js +1 -0
- package/build/es/utils/types/utility.js +1 -0
- package/build/types/app/Application.d.ts +161 -0
- package/build/types/app/Application.d.ts.map +1 -0
- package/build/types/app/events/PageLoad.d.ts +28 -0
- package/build/types/app/events/PageLoad.d.ts.map +1 -0
- package/build/types/app/events/Viewport.d.ts +137 -0
- package/build/types/app/events/Viewport.d.ts.map +1 -0
- package/build/types/base/Callbacks.d.ts +174 -0
- package/build/types/base/Callbacks.d.ts.map +1 -0
- package/build/types/base/Component.d.ts +48 -0
- package/build/types/base/Component.d.ts.map +1 -0
- package/build/types/base/Module.d.ts +179 -0
- package/build/types/base/Module.d.ts.map +1 -0
- package/build/types/base/MutableProp.d.ts +142 -0
- package/build/types/base/MutableProp.d.ts.map +1 -0
- package/build/types/base/Plugin.d.ts +35 -0
- package/build/types/base/Plugin.d.ts.map +1 -0
- package/build/types/components/animation-frame/AnimationFrame.d.ts +96 -0
- package/build/types/components/animation-frame/AnimationFrame.d.ts.map +1 -0
- package/build/types/components/canvas/Ctx2D.d.ts +111 -0
- package/build/types/components/canvas/Ctx2D.d.ts.map +1 -0
- package/build/types/components/canvas/Ctx2DPrerender.d.ts +41 -0
- package/build/types/components/canvas/Ctx2DPrerender.d.ts.map +1 -0
- package/build/types/components/cursor/CustomCursor.d.ts +181 -0
- package/build/types/components/cursor/CustomCursor.d.ts.map +1 -0
- package/build/types/components/dragger/Dragger.d.ts +120 -0
- package/build/types/components/dragger/Dragger.d.ts.map +1 -0
- package/build/types/components/dragger/DraggerDirection.d.ts +39 -0
- package/build/types/components/dragger/DraggerDirection.d.ts.map +1 -0
- package/build/types/components/dragger/DraggerMove.d.ts +49 -0
- package/build/types/components/dragger/DraggerMove.d.ts.map +1 -0
- package/build/types/components/loading/Preloader.d.ts +107 -0
- package/build/types/components/loading/Preloader.d.ts.map +1 -0
- package/build/types/components/loading/ProgressPreloader.d.ts +166 -0
- package/build/types/components/loading/ProgressPreloader.d.ts.map +1 -0
- package/build/types/components/page/Page.d.ts +126 -0
- package/build/types/components/page/Page.d.ts.map +1 -0
- package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts +322 -0
- package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts.map +1 -0
- package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts +97 -0
- package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts.map +1 -0
- package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts +34 -0
- package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts.map +1 -0
- package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts +60 -0
- package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts.map +1 -0
- package/build/types/components/scroll/scrollable/ScrollView.d.ts +140 -0
- package/build/types/components/scroll/scrollable/ScrollView.d.ts.map +1 -0
- package/build/types/components/scroll/scrollbar/Bar.d.ts +84 -0
- package/build/types/components/scroll/scrollbar/Bar.d.ts.map +1 -0
- package/build/types/components/scroll/scrollbar/ScrollBar.d.ts +109 -0
- package/build/types/components/scroll/scrollbar/ScrollBar.d.ts.map +1 -0
- package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts +307 -0
- package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts.map +1 -0
- package/build/types/components/scroll/types.d.ts +11 -0
- package/build/types/components/scroll/types.d.ts.map +1 -0
- package/build/types/components/split-text/SplitText.d.ts +118 -0
- package/build/types/components/split-text/SplitText.d.ts.map +1 -0
- package/build/types/components/text/SplitText.d.ts +118 -0
- package/build/types/components/text/SplitText.d.ts.map +1 -0
- package/build/types/components/timeline/StaticTimeline.d.ts +92 -0
- package/build/types/components/timeline/StaticTimeline.d.ts.map +1 -0
- package/build/types/components/timeline/Timeline.d.ts +101 -0
- package/build/types/components/timeline/Timeline.d.ts.map +1 -0
- package/build/types/index.d.ts +38 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/utils/common/index.d.ts +5 -0
- package/build/types/utils/common/index.d.ts.map +1 -0
- package/build/types/utils/common/mergeWithoutArrays.d.ts +6 -0
- package/build/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
- package/build/types/utils/common/randID.d.ts +5 -0
- package/build/types/utils/common/randID.d.ts.map +1 -0
- package/build/types/utils/common/timeoutCallback.d.ts +6 -0
- package/build/types/utils/common/timeoutCallback.d.ts.map +1 -0
- package/build/types/utils/errors.d.ts +3 -0
- package/build/types/utils/errors.d.ts.map +1 -0
- package/build/types/utils/listeners/index.d.ts +4 -0
- package/build/types/utils/listeners/index.d.ts.map +1 -0
- package/build/types/utils/listeners/intersectionObserverSupported.d.ts +2 -0
- package/build/types/utils/listeners/intersectionObserverSupported.d.ts.map +1 -0
- package/build/types/utils/listeners/onScroll.d.ts +10 -0
- package/build/types/utils/listeners/onScroll.d.ts.map +1 -0
- package/build/types/utils/math/boundVal.d.ts +5 -0
- package/build/types/utils/math/boundVal.d.ts.map +1 -0
- package/build/types/utils/math/index.d.ts +5 -0
- package/build/types/utils/math/index.d.ts.map +1 -0
- package/build/types/utils/math/lerp.d.ts +5 -0
- package/build/types/utils/math/lerp.d.ts.map +1 -0
- package/build/types/utils/math/scopeProgress.d.ts +20 -0
- package/build/types/utils/math/scopeProgress.d.ts.map +1 -0
- package/build/types/utils/types/general.d.ts +7 -0
- package/build/types/utils/types/general.d.ts.map +1 -0
- package/build/types/utils/types/utility.d.ts +14 -0
- package/build/types/utils/types/utility.d.ts.map +1 -0
- package/package.json +88 -82
- package/src/cdn/index.js +3 -0
- package/src/sass/base.scss +3 -0
- package/src/sass/components/cursor/_custom-cursor.scss +63 -0
- package/src/sass/components/index.scss +6 -0
- package/src/sass/components/loading/_preloader.scss +15 -0
- package/src/sass/components/scroll/_scrollbar.scss +73 -0
- package/src/sass/components/scroll/_smooth-scroll.scss +17 -0
- package/src/sass/index.scss +3 -0
- package/src/sass/mixins/_scroll.scss +7 -0
- package/{dist/scss → src/sass}/mixins/_transition.scss +8 -4
- package/src/sass/mixins/_viewport.scss +69 -0
- package/src/sass/mixins/index.scss +3 -0
- package/src/ts/app/Application.ts +350 -0
- package/src/ts/app/events/PageLoad.ts +79 -0
- package/src/ts/app/events/Viewport.ts +365 -0
- package/src/ts/base/Callbacks.ts +380 -0
- package/src/ts/base/Component.ts +83 -0
- package/src/ts/base/Module.ts +385 -0
- package/src/ts/base/MutableProp.ts +242 -0
- package/src/ts/base/Plugin.ts +76 -0
- package/src/ts/components/animation-frame/AnimationFrame.ts +264 -0
- package/src/ts/components/canvas/Ctx2D.ts +260 -0
- package/src/ts/components/canvas/Ctx2DPrerender.ts +96 -0
- package/src/ts/components/cursor/CustomCursor.ts +462 -0
- package/src/ts/components/dragger/Dragger.ts +313 -0
- package/src/ts/components/dragger/DraggerDirection.ts +106 -0
- package/src/ts/components/dragger/DraggerMove.ts +114 -0
- package/src/ts/components/loading/Preloader.ts +279 -0
- package/src/ts/components/loading/ProgressPreloader.ts +484 -0
- package/src/ts/components/page/Page.ts +421 -0
- package/src/ts/components/scroll/plugins/SmoothScrollDragPlugin.ts +251 -0
- package/src/ts/components/scroll/plugins/SmoothScrollKeyboardPlugin.ts +166 -0
- package/src/ts/components/scroll/scrollable/ScrollEventsBase.ts +151 -0
- package/src/ts/components/scroll/scrollable/ScrollView.ts +435 -0
- package/src/ts/components/scroll/scrollbar/Bar.ts +364 -0
- package/src/ts/components/scroll/scrollbar/ScrollBar.ts +292 -0
- package/src/ts/components/scroll/smooth-scroll/SmoothScroll.ts +861 -0
- package/src/ts/components/scroll/types.ts +10 -0
- package/src/ts/components/text/SplitText.ts +418 -0
- package/src/ts/components/timeline/StaticTimeline.ts +197 -0
- package/src/ts/components/timeline/Timeline.ts +256 -0
- package/src/ts/index.ts +94 -0
- package/src/ts/utils/common/index.ts +9 -0
- package/src/ts/utils/common/mergeWithoutArrays.ts +20 -0
- package/src/ts/utils/common/randID.ts +9 -0
- package/src/ts/utils/common/timeoutCallback.ts +16 -0
- package/src/ts/utils/errors.ts +6 -0
- package/src/ts/utils/listeners/index.ts +7 -0
- package/src/ts/utils/listeners/intersectionObserverSupported.ts +10 -0
- package/src/ts/utils/listeners/onScroll.ts +56 -0
- package/src/ts/utils/math/boundVal.ts +15 -0
- package/src/ts/utils/math/index.ts +9 -0
- package/src/ts/utils/math/lerp.ts +16 -0
- package/src/ts/utils/math/scopeProgress.ts +23 -0
- package/src/ts/utils/types/general.ts +7 -0
- package/src/ts/utils/types/utility.ts +34 -0
- package/dist/js/AJAXEvent.js +0 -355
- package/dist/js/Application.js +0 -345
- package/dist/js/ColumnsModule.js +0 -392
- package/dist/js/CursorModule.js +0 -390
- package/dist/js/DraggerModule.js +0 -792
- package/dist/js/Event.js +0 -538
- package/dist/js/FilterModule.js +0 -943
- package/dist/js/FormModule.js +0 -706
- package/dist/js/FrameModule.js +0 -229
- package/dist/js/IntervalModule.js +0 -270
- package/dist/js/KeydownModule.js +0 -293
- package/dist/js/LoadEvent.js +0 -106
- package/dist/js/MenuBaseModule.js +0 -292
- package/dist/js/MenuModule.js +0 -265
- package/dist/js/MenuTimelineModule.js +0 -321
- package/dist/js/Module.js +0 -478
- package/dist/js/PageAjaxModule.js +0 -1010
- package/dist/js/PageLoadMediaPlugin.js +0 -285
- package/dist/js/PageModule.js +0 -440
- package/dist/js/PaginationModule.js +0 -961
- package/dist/js/PaginationScrollPlugin.js +0 -209
- package/dist/js/Plugin.js +0 -114
- package/dist/js/PopupModule.js +0 -942
- package/dist/js/PreloaderModule.js +0 -724
- package/dist/js/ResponsiveProp.js +0 -301
- package/dist/js/ScrollAnchorModule.js +0 -554
- package/dist/js/ScrollAnimateModule.js +0 -419
- package/dist/js/ScrollBarPlugin.js +0 -594
- package/dist/js/ScrollDragPlugin.js +0 -396
- package/dist/js/ScrollModule.js +0 -1071
- package/dist/js/ScrollViewModule.js +0 -388
- package/dist/js/SelectModule.js +0 -860
- package/dist/js/SliderCanvasModule.js +0 -733
- package/dist/js/SliderControlsPlugin.js +0 -247
- package/dist/js/SliderCounterPlugin.js +0 -278
- package/dist/js/SliderDotsPlugin.js +0 -270
- package/dist/js/SliderDragSwipePlugin.js +0 -245
- package/dist/js/SliderIntervalPlugin.js +0 -192
- package/dist/js/SliderKeydownPlugin.js +0 -185
- package/dist/js/SliderModule.js +0 -1062
- package/dist/js/SliderWheelPlugin.js +0 -194
- package/dist/js/TextAnimateModule.js +0 -663
- package/dist/js/TextSplitModule.js +0 -785
- package/dist/js/TimelineBaseModule.js +0 -405
- package/dist/js/TimelineModule.js +0 -494
- package/dist/js/URLEvent.js +0 -239
- package/dist/js/ViewportEvent.js +0 -465
- package/dist/js/WheelEventModule.js +0 -295
- package/dist/js/domChildOf.js +0 -46
- package/dist/js/domChildren.js +0 -47
- package/dist/js/domInsertAfter.js +0 -32
- package/dist/js/domRemoveChildren.js +0 -26
- package/dist/js/easing.js +0 -363
- package/dist/js/eventListenerAdd.js +0 -87
- package/dist/js/eventListenerGet.js +0 -49
- package/dist/js/eventListenerRemove.js +0 -36
- package/dist/js/generateId.js +0 -29
- package/dist/js/getBrowserName.js +0 -60
- package/dist/js/getOsName.js +0 -39
- package/dist/js/getVevetProperties.js +0 -22
- package/dist/js/index.js +0 -519
- package/dist/js/mathScopeProgress.js +0 -32
- package/dist/js/mathSpreadScopeProgress.js +0 -35
- package/dist/js/merge.js +0 -33
- package/dist/js/normalizeWheel.js +0 -97
- package/dist/js/text_animate_module_addons/_composite_elementary.js +0 -196
- package/dist/js/text_animate_module_addons/_elementary.js +0 -88
- package/dist/js/timeoutCallback.js +0 -26
- package/dist/js/vevet.js +0 -10
- package/dist/scss/_prefix.scss +0 -1
- package/dist/scss/classes/_clear.scss +0 -5
- package/dist/scss/classes/_col-row.scss +0 -48
- package/dist/scss/classes/_display.scss +0 -65
- package/dist/scss/classes/_document-reset.scss +0 -28
- package/dist/scss/classes/_document.scss +0 -7
- package/dist/scss/classes/_overflow.scss +0 -39
- package/dist/scss/classes/_position.scss +0 -55
- package/dist/scss/classes/_text.scss +0 -24
- package/dist/scss/classes/_transition.scss +0 -22
- package/dist/scss/classes/_wrap.scss +0 -31
- package/dist/scss/classes/index.scss +0 -14
- package/dist/scss/index.scss +0 -3
- package/dist/scss/mixins/_clear.scss +0 -6
- package/dist/scss/mixins/_display.scss +0 -6
- package/dist/scss/mixins/_form.scss +0 -14
- package/dist/scss/mixins/_position.scss +0 -42
- package/dist/scss/mixins/_reset.scss +0 -17
- package/dist/scss/mixins/_responsive.scss +0 -88
- package/dist/scss/mixins/index.scss +0 -7
- package/dist/scss/modules/columns/_settings.scss +0 -1
- package/dist/scss/modules/columns/index.scss +0 -19
- package/dist/scss/modules/cursor/_settings.scss +0 -7
- package/dist/scss/modules/cursor/index.scss +0 -15
- package/dist/scss/modules/form/_settings.scss +0 -15
- package/dist/scss/modules/form/index.scss +0 -57
- package/dist/scss/modules/index.scss +0 -11
- package/dist/scss/modules/menu/_button.scss +0 -58
- package/dist/scss/modules/menu/_menu.scss +0 -25
- package/dist/scss/modules/menu/_settings.scss +0 -23
- package/dist/scss/modules/menu/index.scss +0 -3
- package/dist/scss/modules/pagination/_settings.scss +0 -6
- package/dist/scss/modules/pagination/index.scss +0 -24
- package/dist/scss/modules/popup/_settings.scss +0 -26
- package/dist/scss/modules/popup/index.scss +0 -294
- package/dist/scss/modules/preloader/_settings.scss +0 -3
- package/dist/scss/modules/preloader/index.scss +0 -19
- package/dist/scss/modules/scroll/_settings.scss +0 -22
- package/dist/scss/modules/scroll/index.scss +0 -94
- package/dist/scss/modules/select/_settings.scss +0 -28
- package/dist/scss/modules/select/index.scss +0 -142
- package/dist/scss/modules/slider/_settings.scss +0 -35
- package/dist/scss/modules/slider/index.scss +0 -153
- package/dist/scss/modules/text/_settings.scss +0 -1
- package/dist/scss/modules/text/index.scss +0 -19
- package/dist/types/types.d.ts +0 -18763
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/* Type of animation */
|
|
4
|
-
function composite_elementary(prop, type) {
|
|
5
|
-
// get the needed SettingStyle
|
|
6
|
-
var styles;
|
|
7
|
-
|
|
8
|
-
if (type === 'lineletter' || type === 'wordletter') {
|
|
9
|
-
styles = prop.letter;
|
|
10
|
-
} else if (type === 'lineword') {
|
|
11
|
-
styles = prop.word;
|
|
12
|
-
} // get parents
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var parents;
|
|
16
|
-
|
|
17
|
-
if (type === 'lineletter' || type === 'lineword') {
|
|
18
|
-
parents = this._el.lines.slice();
|
|
19
|
-
} else if (type === 'wordletter') {
|
|
20
|
-
parents = this._el.words.slice();
|
|
21
|
-
} // if animation is to be reversed
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (prop.reverseComposite) {
|
|
25
|
-
parents.reverse();
|
|
26
|
-
} // if the chain is to be chaotic
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (prop.shuffle) {
|
|
30
|
-
parents.sort(function () {
|
|
31
|
-
return Math.random() - .5;
|
|
32
|
-
});
|
|
33
|
-
} // get animation information
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var info = composite_elementary_duration(Object.assign(prop, {
|
|
37
|
-
styles: styles,
|
|
38
|
-
type: type,
|
|
39
|
-
parents: parents
|
|
40
|
-
}), this._prop);
|
|
41
|
-
return info;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function composite_elementary_getChildren(parent, data, prop) {
|
|
45
|
-
// get children
|
|
46
|
-
var children = [];
|
|
47
|
-
|
|
48
|
-
if (data.type == 'lineletter') {
|
|
49
|
-
if (prop.appendWords) {
|
|
50
|
-
for (var i = 0; i < parent.children.length; i++) {
|
|
51
|
-
var subChild = parent.children[i];
|
|
52
|
-
|
|
53
|
-
for (var a = 0; a < subChild.children.length; a++) {
|
|
54
|
-
var child = subChild.children[a];
|
|
55
|
-
children.push(child);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
children = parent.children;
|
|
60
|
-
}
|
|
61
|
-
} else if (data.type == 'lineword' || data.type == 'wordletter') {
|
|
62
|
-
children = parent.children;
|
|
63
|
-
} // get amount
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var amount = children.length,
|
|
67
|
-
el = children.slice(); // copy elements
|
|
68
|
-
|
|
69
|
-
el = el.slice(); // if animation is to be reversed
|
|
70
|
-
|
|
71
|
-
if (data.reverse) {
|
|
72
|
-
el.reverse();
|
|
73
|
-
} // if the chain is to be chaotic
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (data.shuffle) {
|
|
77
|
-
el.sort(function () {
|
|
78
|
-
return Math.random() - .5;
|
|
79
|
-
});
|
|
80
|
-
} // return values
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
amount: amount,
|
|
85
|
-
el: el
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function composite_elementary_getParents(data) {
|
|
90
|
-
// get amount
|
|
91
|
-
var amount = data.parents.length,
|
|
92
|
-
el = data.parents.slice(); // return values
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
amount: amount,
|
|
96
|
-
el: el
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function composite_elementary_duration(data, prop) {
|
|
101
|
-
// get parents
|
|
102
|
-
var parents = composite_elementary_getParents(data); // get duration
|
|
103
|
-
|
|
104
|
-
var duration = data.duration; // intervals of time
|
|
105
|
-
|
|
106
|
-
var timelines = []; // calculate custom duration if auto
|
|
107
|
-
|
|
108
|
-
if (data.durationAuto) {
|
|
109
|
-
// calculate duration of children
|
|
110
|
-
// full duration of all parents including elements inside with shifts
|
|
111
|
-
var durationFull = 0; // all shifts between parents
|
|
112
|
-
|
|
113
|
-
var shiftsFull = 0; // durations of parents that include duration of all elements with shifts
|
|
114
|
-
|
|
115
|
-
var parentsDuration = []; // children in parents
|
|
116
|
-
|
|
117
|
-
var allChildren = [];
|
|
118
|
-
|
|
119
|
-
for (var i = 0; i < parents.amount; i++) {
|
|
120
|
-
// all children inside the line
|
|
121
|
-
var children = composite_elementary_getChildren(parents.el[i], data, prop); // duration of children without shifts
|
|
122
|
-
|
|
123
|
-
var childrenDurationFull = children.amount * data.durationElement; // all shifts between children
|
|
124
|
-
|
|
125
|
-
var childrenShifts = (children.amount - 1) * data.shift * data.durationElement; // get duration of children taking shifts into account
|
|
126
|
-
|
|
127
|
-
var childrenDuration = childrenDurationFull - childrenShifts; // increase full duration without shifts
|
|
128
|
-
|
|
129
|
-
durationFull += childrenDuration; // increase total shifts
|
|
130
|
-
|
|
131
|
-
if (i > 0) {
|
|
132
|
-
shiftsFull += childrenDuration * data.shiftLine;
|
|
133
|
-
} // add informations to stack
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
parentsDuration.push(childrenDuration);
|
|
137
|
-
allChildren.push(children);
|
|
138
|
-
} // calculate real duration
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
duration = durationFull - shiftsFull; // get timelines
|
|
142
|
-
|
|
143
|
-
for (var _i = 0; _i < parents.amount; _i++) {
|
|
144
|
-
// get starting point of time in line
|
|
145
|
-
var startTimeLine = 0;
|
|
146
|
-
|
|
147
|
-
for (var a = 0; a < _i; a++) {
|
|
148
|
-
startTimeLine += parentsDuration[a] - parentsDuration[a] * data.shiftLine;
|
|
149
|
-
} // calculate timelines of children
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
for (var _a = 0; _a < allChildren[_i].amount; _a++) {
|
|
153
|
-
var startTime = startTimeLine + data.durationElement * (1 - data.shift) * _a,
|
|
154
|
-
endTime = startTime + data.durationElement;
|
|
155
|
-
timelines.push({
|
|
156
|
-
start: startTime / duration,
|
|
157
|
-
end: endTime / duration,
|
|
158
|
-
el: allChildren[_i].el[_a]
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
} // calculate duration of each element if duration not auto
|
|
163
|
-
else {
|
|
164
|
-
// get duration of each parent
|
|
165
|
-
var parentDuration = 1 / (parents.amount - data.shiftLine * (parents.amount - 1)); // go thru all parents
|
|
166
|
-
|
|
167
|
-
for (var _i2 = 0; _i2 < parents.amount; _i2++) {
|
|
168
|
-
// get starting point in parent
|
|
169
|
-
var parentStart = parentDuration * (1 - data.shiftLine) * _i2; // get children
|
|
170
|
-
|
|
171
|
-
var _children = composite_elementary_getChildren(parents.el[_i2], data, prop); // calculate duration of each child
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
var childDuration = parentDuration / (_children.amount - data.shift * (_children.amount - 1)); // set timelines of children
|
|
175
|
-
|
|
176
|
-
for (var _a2 = 0; _a2 < _children.amount; _a2++) {
|
|
177
|
-
var start = parentStart + childDuration * (1 - data.shift) * _a2,
|
|
178
|
-
end = start + childDuration;
|
|
179
|
-
timelines.push({
|
|
180
|
-
start: start,
|
|
181
|
-
end: end,
|
|
182
|
-
el: _children.el[_a2]
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
} // return object of data
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return {
|
|
190
|
-
duration: duration,
|
|
191
|
-
timelines: timelines,
|
|
192
|
-
styles: data.styles
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
module.exports = composite_elementary;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/* Type of animation */
|
|
4
|
-
function elementary(prop, type) {
|
|
5
|
-
// get elements
|
|
6
|
-
var el;
|
|
7
|
-
|
|
8
|
-
if (type === 'letter') {
|
|
9
|
-
el = this._el.letters;
|
|
10
|
-
} else if (type === 'word') {
|
|
11
|
-
el = this._el.words;
|
|
12
|
-
} else {
|
|
13
|
-
el = this._el.lines;
|
|
14
|
-
} // get the needed SettingStyle
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var styles;
|
|
18
|
-
|
|
19
|
-
if (type === 'letter') {
|
|
20
|
-
styles = prop.letter;
|
|
21
|
-
} else if (type === 'word') {
|
|
22
|
-
styles = prop.word;
|
|
23
|
-
} else {
|
|
24
|
-
styles = prop.line;
|
|
25
|
-
} // copy elements
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
el = el.slice(); // if animation is to be reversed
|
|
29
|
-
|
|
30
|
-
if (prop.reverse) {
|
|
31
|
-
el.reverse();
|
|
32
|
-
} // if the chain is to be chaotic
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (prop.shuffle) {
|
|
36
|
-
el.sort(function () {
|
|
37
|
-
return Math.random() - .5;
|
|
38
|
-
});
|
|
39
|
-
} // if the chain must start from center
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (prop.center) {
|
|
43
|
-
var centerNums = []; // if odd or even // if one or two elements in the center
|
|
44
|
-
|
|
45
|
-
var centerNum = Math.ceil(el.length / 2) - 1;
|
|
46
|
-
|
|
47
|
-
if (el.length % 2 == 0) {
|
|
48
|
-
centerNums = [centerNum, centerNum + 1];
|
|
49
|
-
} else {
|
|
50
|
-
centerNums = [centerNum];
|
|
51
|
-
} // create new array of elements // in the center at first
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var elNew = [],
|
|
55
|
-
start = centerNums[0],
|
|
56
|
-
end = centerNums[0];
|
|
57
|
-
|
|
58
|
-
if (centerNums.length === 1) {
|
|
59
|
-
elNew.push(el[centerNums[0]]);
|
|
60
|
-
} else {
|
|
61
|
-
elNew.push([el[centerNums[0]], el[centerNums[1]]]);
|
|
62
|
-
end = centerNums[1];
|
|
63
|
-
} // how much elements are left?
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var elementsLeft = (el.length - centerNums.length) / 2;
|
|
67
|
-
|
|
68
|
-
for (var i = 1; i <= elementsLeft; i++) {
|
|
69
|
-
var arr = [];
|
|
70
|
-
arr.push(el[end + i]);
|
|
71
|
-
arr.push(el[start - i]);
|
|
72
|
-
elNew.push(arr);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
el = elNew;
|
|
76
|
-
} // get animation information
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
var info = this._animationInfo(Object.assign(prop, {
|
|
80
|
-
el: el,
|
|
81
|
-
styles: styles,
|
|
82
|
-
type: type
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
return info;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
module.exports = elementary;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @description Timeout callback.
|
|
10
|
-
*
|
|
11
|
-
* @param {Function} callback
|
|
12
|
-
* @param {number} timeout
|
|
13
|
-
*
|
|
14
|
-
* @memberof Vevet
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
function timeoutCallback(callback, timeout) {
|
|
18
|
-
if (timeout === 0) {
|
|
19
|
-
callback();
|
|
20
|
-
} else {
|
|
21
|
-
setTimeout(callback.bind(this), timeout);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var _default = timeoutCallback;
|
|
26
|
-
exports.default = _default;
|
package/dist/js/vevet.js
DELETED
package/dist/scss/_prefix.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$prefix: 'vevet-' !default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
$cols: 12 !default;
|
|
2
|
-
$rows: 12 !default;
|
|
3
|
-
|
|
4
|
-
.col {
|
|
5
|
-
|
|
6
|
-
@for $i from 1 through $cols {
|
|
7
|
-
|
|
8
|
-
$p: $i / $cols;
|
|
9
|
-
$value: percentage($p);
|
|
10
|
-
|
|
11
|
-
&-#{$i} {
|
|
12
|
-
width: $value;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-v-#{$i} {
|
|
16
|
-
width: #{$p * 100}vw;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-left {
|
|
22
|
-
float: left;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-right {
|
|
26
|
-
float: right;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.row {
|
|
32
|
-
|
|
33
|
-
@for $i from 1 through $rows {
|
|
34
|
-
|
|
35
|
-
$p: $i / $rows;
|
|
36
|
-
$value: percentage($p);
|
|
37
|
-
|
|
38
|
-
&-#{$i} {
|
|
39
|
-
height: $value;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&-v-#{$i} {
|
|
43
|
-
height: #{$p * 100}vh;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@import '../mixins/display';
|
|
2
|
-
|
|
3
|
-
.display {
|
|
4
|
-
|
|
5
|
-
&-block {
|
|
6
|
-
display: block;
|
|
7
|
-
|
|
8
|
-
&_important {
|
|
9
|
-
display: block !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
&-inline-block {
|
|
17
|
-
display: inline-block;
|
|
18
|
-
|
|
19
|
-
&_important {
|
|
20
|
-
display: inline-block !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
&-inline {
|
|
28
|
-
display: inline;
|
|
29
|
-
|
|
30
|
-
&_important {
|
|
31
|
-
display: inline !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
&-flex {
|
|
39
|
-
display: flex;
|
|
40
|
-
|
|
41
|
-
&_important {
|
|
42
|
-
display: flex !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&_center {
|
|
46
|
-
align-items: center;
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
&-none {
|
|
57
|
-
display: none;
|
|
58
|
-
|
|
59
|
-
&_important {
|
|
60
|
-
display: none !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@import '../prefix';
|
|
2
|
-
|
|
3
|
-
.#{$prefix}reset,
|
|
4
|
-
.#{$prefix}reset * {
|
|
5
|
-
-moz-appearance: none;
|
|
6
|
-
-webkit-appearance: none;
|
|
7
|
-
|
|
8
|
-
-webkit-tap-highlight-color: transparent;
|
|
9
|
-
-webkit-text-size-adjust: 100%;
|
|
10
|
-
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
|
|
13
|
-
outline: none;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.#{$prefix}reset {
|
|
18
|
-
|
|
19
|
-
input,
|
|
20
|
-
textarea {
|
|
21
|
-
|
|
22
|
-
&::-ms-clear {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.overflow {
|
|
2
|
-
|
|
3
|
-
&-visible {
|
|
4
|
-
overflow: visible;
|
|
5
|
-
|
|
6
|
-
&_imortant {
|
|
7
|
-
overflow: visible !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-hidden {
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
|
|
15
|
-
&_imortant {
|
|
16
|
-
overflow: hidden !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-scroll {
|
|
22
|
-
overflow: scroll;
|
|
23
|
-
|
|
24
|
-
&_imortant {
|
|
25
|
-
overflow: scroll !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-auto {
|
|
31
|
-
overflow: auto;
|
|
32
|
-
|
|
33
|
-
&_imortant {
|
|
34
|
-
overflow: auto !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@import '../mixins/position';
|
|
2
|
-
|
|
3
|
-
.top-left {
|
|
4
|
-
@include top-left();
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.top-right {
|
|
8
|
-
@include top-right();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.bottom-left {
|
|
12
|
-
@include bottom-left();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.bottom-right {
|
|
16
|
-
@include bottom-right();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.relative {
|
|
22
|
-
position: relative;
|
|
23
|
-
|
|
24
|
-
&_important {
|
|
25
|
-
position: relative !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.absolute {
|
|
31
|
-
position: absolute;
|
|
32
|
-
|
|
33
|
-
&_important {
|
|
34
|
-
position: absolute !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.fixed {
|
|
40
|
-
position: fixed;
|
|
41
|
-
|
|
42
|
-
&_important {
|
|
43
|
-
position: fixed !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.static {
|
|
49
|
-
position: static;
|
|
50
|
-
|
|
51
|
-
&_important {
|
|
52
|
-
position: static !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.text {
|
|
2
|
-
position: relative;
|
|
3
|
-
|
|
4
|
-
&-left {
|
|
5
|
-
text-align: left;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-center {
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-right {
|
|
13
|
-
text-align: right;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-justify {
|
|
17
|
-
text-align: justify;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
p {
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@import '../prefix';
|
|
2
|
-
@import '../mixins/transition';
|
|
3
|
-
|
|
4
|
-
.#{$prefix}no-transition {
|
|
5
|
-
|
|
6
|
-
*:not(.#{$prefix}preloader) {
|
|
7
|
-
|
|
8
|
-
&:not(.#{$prefix}preloader__item) {
|
|
9
|
-
&:not(.#{$prefix}has-transition) {
|
|
10
|
-
&,
|
|
11
|
-
&:before,
|
|
12
|
-
&:after {
|
|
13
|
-
animation-delay: 0s !important;
|
|
14
|
-
animation-duration: 0s !important;
|
|
15
|
-
transition: 0s !important;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
$wrap-padding: 0 !default;
|
|
2
|
-
$wrap-1-padding: 0 4vw !default;
|
|
3
|
-
$wrap-2-padding: 0 8vw !default;
|
|
4
|
-
$wrap-3-padding: 0 12vw !default;
|
|
5
|
-
$wrap-4-padding: 0 16vw !default;
|
|
6
|
-
|
|
7
|
-
.wrap {
|
|
8
|
-
padding: $wrap-padding;
|
|
9
|
-
width: 100%;
|
|
10
|
-
|
|
11
|
-
&_1 {
|
|
12
|
-
@extend .wrap;
|
|
13
|
-
padding: $wrap-1-padding;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&_2 {
|
|
17
|
-
@extend .wrap;
|
|
18
|
-
padding: $wrap-2-padding;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&_3 {
|
|
22
|
-
@extend .wrap;
|
|
23
|
-
padding: $wrap-3-padding;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&_4 {
|
|
27
|
-
@extend .wrap;
|
|
28
|
-
padding: $wrap-4-padding;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
package/dist/scss/index.scss
DELETED