amotify 0.0.4 → 0.0.6
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/dist/@jsminAmotifyExtension/formCollect.js +1 -1
- package/dist/Atoms/Logo/parts.js +1 -1
- package/dist/Atoms/Various/parts.js +1 -1
- package/dist/Functions/Button/_.js +1 -1
- package/dist/Functions/Cropper/parts.js +4 -4
- package/dist/Functions/Effects/Fade.js +2 -2
- package/dist/Functions/Input/Chips/Selector.js +4 -4
- package/dist/Functions/Input/Chips/_.js +3 -3
- package/dist/Functions/Input/DigitCharacters.js +3 -3
- package/dist/Functions/Input/File/_.js +4 -4
- package/dist/Functions/Input/List/_.js +3 -3
- package/dist/Functions/Input/Segmented/_.js +1 -1
- package/dist/Functions/Input/Select/_.js +2 -2
- package/dist/Functions/Input/Slider/_.js +3 -3
- package/dist/Functions/Input/Switch/_.js +4 -4
- package/dist/Functions/Input/Text.js +2 -2
- package/dist/Functions/Input/TextArea.js +1 -1
- package/dist/Functions/Input/Time/Picker.js +4 -4
- package/dist/Functions/Input/Time/_.js +3 -3
- package/dist/Functions/Input/_.js +4 -4
- package/dist/Functions/Input/core.js +4 -4
- package/dist/Functions/Inputs/text.js +1 -1
- package/dist/Functions/Layout/PageNotFound.js +3 -3
- package/dist/Functions/Layout/PageRouter.js +2 -2
- package/dist/Functions/Layout/PageViewController/parts.js +2 -2
- package/dist/Functions/Layout/Plate.js +1 -1
- package/dist/Functions/Layout/RootViewController/parts.js +4 -4
- package/dist/Functions/Layout/SwipeView/parts.js +2 -2
- package/dist/Functions/Layout/TabBar.js +3 -3
- package/dist/Functions/Loader/corner.js +2 -2
- package/dist/Functions/Loader/mini.js +2 -2
- package/dist/Functions/Loader/parts.js +1 -1
- package/dist/Functions/Loader/top.js +2 -2
- package/dist/Functions/Sheet/parts.js +4 -4
- package/dist/Functions/SnackBar/parts.js +4 -4
- package/dist/Functions/Table/Data/parts.js +4 -4
- package/dist/Functions/Table/Drag/parts.js +3 -3
- package/dist/Functions/Table/_.js +2 -2
- package/dist/Functions/Tooltips/parts.js +2 -2
- package/dist/Molecules/@export.js +1 -1
- package/dist/Molecules/Accordion/parts.js +2 -2
- package/dist/Molecules/LinkifyText/parts.js +2 -2
- package/dist/Molecules/List.js +1 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +4 -4
- package/dist/Organisms/DisplayStyleInput/themeColor.js +4 -4
- package/dist/Templates/PlayGround/parts.js +5 -5
- package/dist/launch.js +6 -6
- package/package.json +6 -5
- package/public/amotify.js +310 -0
- package/public/amotify.min.css +12724 -0
- package/dist/src/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/src/@types/_.d.ts +0 -6
- package/dist/src/@types/amot.d.ts +0 -260
- package/dist/src/@types/fn.d.ts +0 -1040
- package/dist/src/@types/index.d.ts +0 -62
- package/dist/src/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/src/@types/module.d.ts +0 -2
- package/dist/src/@types/state.d.ts +0 -145
- package/dist/src/Atoms/@export.d.ts +0 -4
- package/dist/src/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/src/Atoms/Logo/parts.d.ts +0 -1
- package/dist/src/Atoms/Various/parts.d.ts +0 -9
- package/dist/src/Functions/@export.d.ts +0 -12
- package/dist/src/Functions/Button/_.d.ts +0 -1
- package/dist/src/Functions/Cropper/parts.d.ts +0 -1
- package/dist/src/Functions/Effects/Fade.d.ts +0 -1
- package/dist/src/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/src/Functions/Effects/_.d.ts +0 -3
- package/dist/src/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/src/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/src/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/src/Functions/Input/File/_.d.ts +0 -2
- package/dist/src/Functions/Input/Hidden.d.ts +0 -1
- package/dist/src/Functions/Input/List/_.d.ts +0 -1
- package/dist/src/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/src/Functions/Input/Select/_.d.ts +0 -1
- package/dist/src/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/src/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/src/Functions/Input/Text.d.ts +0 -5
- package/dist/src/Functions/Input/TextArea.d.ts +0 -1
- package/dist/src/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/src/Functions/Input/Time/_.d.ts +0 -2
- package/dist/src/Functions/Input/_.d.ts +0 -5
- package/dist/src/Functions/Input/core.d.ts +0 -34
- package/dist/src/Functions/Inputs/_.d.ts +0 -3
- package/dist/src/Functions/Inputs/text.d.ts +0 -12
- package/dist/src/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/src/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/src/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/src/Functions/Layout/Plate.d.ts +0 -1
- package/dist/src/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/src/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/src/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/src/Functions/Layout/_.d.ts +0 -2
- package/dist/src/Functions/Loader/corner.d.ts +0 -1
- package/dist/src/Functions/Loader/mini.d.ts +0 -33
- package/dist/src/Functions/Loader/parts.d.ts +0 -3
- package/dist/src/Functions/Loader/top.d.ts +0 -1
- package/dist/src/Functions/Sheet/parts.d.ts +0 -2
- package/dist/src/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/src/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/src/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/src/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/src/Functions/Table/_.d.ts +0 -9
- package/dist/src/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/src/Global/@export.d.ts +0 -12
- package/dist/src/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/src/Global/styleConverter.d.ts +0 -2
- package/dist/src/Molecules/@export.d.ts +0 -21
- package/dist/src/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/src/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/src/Molecules/List.d.ts +0 -1
- package/dist/src/Organisms/@export.d.ts +0 -2
- package/dist/src/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/src/Templates/@export.d.ts +0 -2
- package/dist/src/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/src/config.d.ts +0 -16
- package/dist/src/launch.d.ts +0 -9
- package/dist/src/preload.d.ts +0 -1
- package/src/@jsminAmotifyExtension/_.tsx +0 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +0 -107
- package/src/@jsminAmotifyExtension/formCollect.tsx +0 -89
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -159
- package/src/@jsminAmotifyExtension/variables.tsx +0 -130
- package/src/@styles/@app.scss +0 -4
- package/src/@styles/@variables/customProps.scss +0 -109
- package/src/@styles/@variables/styleSet.scss +0 -38
- package/src/@styles/@variables/themeColor.scss +0 -71
- package/src/@styles/@variables/var.scss +0 -171
- package/src/@styles/UniStyling.scss +0 -996
- package/src/@styles/init.scss +0 -154
- package/src/@types/_.tsx +0 -6
- package/src/@types/amot.tsx +0 -323
- package/src/@types/fn.tsx +0 -1210
- package/src/@types/index.tsx +0 -74
- package/src/@types/jsminAmotifyExtension.tsx +0 -143
- package/src/@types/module.tsx +0 -2
- package/src/@types/state.tsx +0 -199
- package/src/Atoms/@export.tsx +0 -32
- package/src/Atoms/FAIcon/parts.tsx +0 -117
- package/src/Atoms/FAIcon/style.module.scss +0 -9
- package/src/Atoms/Logo/parts.tsx +0 -335
- package/src/Atoms/Logo/style.module.scss +0 -96
- package/src/Atoms/Various/parts.tsx +0 -157
- package/src/Atoms/Various/style.module.scss +0 -40
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Button/_.tsx +0 -305
- package/src/Functions/Button/style.module.scss +0 -183
- package/src/Functions/Cropper/parts.tsx +0 -1061
- package/src/Functions/Cropper/style.module.scss +0 -62
- package/src/Functions/Effects/Fade.tsx +0 -81
- package/src/Functions/Effects/Ripple.tsx +0 -141
- package/src/Functions/Effects/_.tsx +0 -33
- package/src/Functions/Effects/style.module.scss +0 -83
- package/src/Functions/Input/Chips/Selector.tsx +0 -451
- package/src/Functions/Input/Chips/_.tsx +0 -286
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- package/src/Functions/Input/DigitCharacters.tsx +0 -241
- package/src/Functions/Input/File/_.tsx +0 -596
- package/src/Functions/Input/File/style.module.scss +0 -34
- package/src/Functions/Input/Hidden.tsx +0 -18
- package/src/Functions/Input/List/_.tsx +0 -383
- package/src/Functions/Input/List/style.module.scss +0 -84
- package/src/Functions/Input/Segmented/_.tsx +0 -238
- package/src/Functions/Input/Segmented/style.module.scss +0 -81
- package/src/Functions/Input/Select/_.tsx +0 -225
- package/src/Functions/Input/Select/style.module.scss +0 -10
- package/src/Functions/Input/Slider/_.tsx +0 -519
- package/src/Functions/Input/Slider/style.module.scss +0 -67
- package/src/Functions/Input/Switch/_.tsx +0 -177
- package/src/Functions/Input/Switch/style.module.scss +0 -18
- package/src/Functions/Input/Text.tsx +0 -437
- package/src/Functions/Input/TextArea.tsx +0 -115
- package/src/Functions/Input/Time/Picker.tsx +0 -950
- package/src/Functions/Input/Time/_.tsx +0 -736
- package/src/Functions/Input/Time/style.module.scss +0 -72
- package/src/Functions/Input/_.tsx +0 -793
- package/src/Functions/Input/core.tsx +0 -461
- package/src/Functions/Input/style.module.scss +0 -43
- package/src/Functions/Inputs/_.tsx +0 -5
- package/src/Functions/Inputs/style.module.scss +0 -15
- package/src/Functions/Inputs/text.tsx +0 -67
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Functions/Layout/PageNotFound.tsx +0 -81
- package/src/Functions/Layout/PageRouter.tsx +0 -107
- package/src/Functions/Layout/PageViewController/parts.tsx +0 -32
- package/src/Functions/Layout/Plate.tsx +0 -30
- package/src/Functions/Layout/RootViewController/parts.tsx +0 -290
- package/src/Functions/Layout/RootViewController/style.module.scss +0 -24
- package/src/Functions/Layout/SwipeView/parts.tsx +0 -380
- package/src/Functions/Layout/SwipeView/style.module.scss +0 -19
- package/src/Functions/Layout/TabBar.tsx +0 -64
- package/src/Functions/Layout/_.tsx +0 -20
- package/src/Functions/Loader/corner.tsx +0 -78
- package/src/Functions/Loader/mini.tsx +0 -117
- package/src/Functions/Loader/parts.tsx +0 -105
- package/src/Functions/Loader/style.module.scss +0 -222
- package/src/Functions/Loader/top.tsx +0 -90
- package/src/Functions/Sheet/parts.tsx +0 -972
- package/src/Functions/Sheet/style.module.scss +0 -235
- package/src/Functions/SnackBar/parts.tsx +0 -215
- package/src/Functions/SnackBar/style.module.scss +0 -25
- package/src/Functions/Table/Data/parts.tsx +0 -955
- package/src/Functions/Table/Drag/parts.tsx +0 -448
- package/src/Functions/Table/Normal/parts.tsx +0 -123
- package/src/Functions/Table/_.tsx +0 -170
- package/src/Functions/Table/style.module.scss +0 -92
- package/src/Functions/Tooltips/parts.tsx +0 -52
- package/src/Global/@export.tsx +0 -138
- package/src/Global/LaunchReactApplication.tsx +0 -30
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +0 -435
- package/src/Molecules/@export.tsx +0 -95
- package/src/Molecules/Accordion/parts.tsx +0 -146
- package/src/Molecules/Accordion/style.module.scss +0 -13
- package/src/Molecules/LinkifyText/parts.tsx +0 -54
- package/src/Molecules/List.tsx +0 -30
- package/src/Organisms/@export.tsx +0 -5
- package/src/Organisms/DisplayStyleInput/_.tsx +0 -18
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +0 -112
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +0 -210
- package/src/Templates/@export.tsx +0 -7
- package/src/Templates/PlayGround/parts.tsx +0 -115
- package/src/Templates/PlayGround/style.module.scss +0 -38
- package/src/config.tsx +0 -132
- package/src/launch.tsx +0 -100
- package/src/preload.tsx +0 -49
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@use '@uniVar' as *;
|
|
2
|
-
.Wrap {
|
|
3
|
-
&.Use_ {
|
|
4
|
-
&profile {
|
|
5
|
-
max-width: calc($unit1 * 38);
|
|
6
|
-
}
|
|
7
|
-
&head {
|
|
8
|
-
max-width: calc($unit1 * 72);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
.Canvas {
|
|
13
|
-
width: 100%;
|
|
14
|
-
cursor: move;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
// user-select: none !important;
|
|
17
|
-
}
|
|
18
|
-
.Preview {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
.ToneBall {
|
|
22
|
-
& {
|
|
23
|
-
position: relative;
|
|
24
|
-
width: $unit1-5;
|
|
25
|
-
height: $unit1-5;
|
|
26
|
-
border-radius: 50%;
|
|
27
|
-
background-color: gray;
|
|
28
|
-
&:before {}
|
|
29
|
-
}
|
|
30
|
-
&_ {
|
|
31
|
-
&1 {
|
|
32
|
-
background-color: rgb(255, 165, 0);
|
|
33
|
-
}
|
|
34
|
-
&2 {
|
|
35
|
-
background-color: rgb(150, 150, 255);
|
|
36
|
-
}
|
|
37
|
-
&3 {
|
|
38
|
-
background-color: rgb(240, 200, 145);
|
|
39
|
-
}
|
|
40
|
-
&4 {
|
|
41
|
-
background-color: rgb(0, 255, 255);
|
|
42
|
-
}
|
|
43
|
-
&5 {
|
|
44
|
-
background-color: rgb(255, 0, 255);
|
|
45
|
-
}
|
|
46
|
-
&6 {
|
|
47
|
-
background-color: rgb(255, 255, 0);
|
|
48
|
-
}
|
|
49
|
-
&7 {
|
|
50
|
-
background-color: rgb(40, 158, 169);
|
|
51
|
-
}
|
|
52
|
-
&8 {
|
|
53
|
-
background-color: rgb(90, 112, 162);
|
|
54
|
-
}
|
|
55
|
-
&9 {
|
|
56
|
-
background-color: rgb(50, 192, 87);
|
|
57
|
-
}
|
|
58
|
-
&10 {
|
|
59
|
-
background-color: rgb(246, 20, 140);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React
|
|
3
|
-
} from '@global';
|
|
4
|
-
import {
|
|
5
|
-
Box
|
|
6
|
-
} from '@atoms';
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
useState,
|
|
10
|
-
useEffect
|
|
11
|
-
} = React;
|
|
12
|
-
|
|
13
|
-
export const FadeEffects: amotify.fn.Effects.Methods = {
|
|
14
|
-
...{} as any,
|
|
15
|
-
FadeIn: ( params ) => {
|
|
16
|
-
let {
|
|
17
|
-
animationDelay = 100,
|
|
18
|
-
animationTime = 300,
|
|
19
|
-
componentID = $.uuidGen(),
|
|
20
|
-
...others
|
|
21
|
-
} = params;
|
|
22
|
-
let [ val_componentID ] = useState( componentID );
|
|
23
|
-
|
|
24
|
-
useEffect( () => {
|
|
25
|
-
setTimeout( () => {
|
|
26
|
-
let Element = $( '[data-component-id="' + val_componentID + '"]' );
|
|
27
|
-
if ( !Element[ 0 ] ) return;
|
|
28
|
-
Element.css( {
|
|
29
|
-
transition: animationTime + 'ms'
|
|
30
|
-
} )
|
|
31
|
-
.await( 1 )
|
|
32
|
-
.css( {
|
|
33
|
-
opacity: 1
|
|
34
|
-
} );
|
|
35
|
-
},animationDelay );
|
|
36
|
-
},[] );
|
|
37
|
-
|
|
38
|
-
return ( <Box
|
|
39
|
-
{ ...others }
|
|
40
|
-
freeCSS={ {
|
|
41
|
-
...others.freeCSS,
|
|
42
|
-
opacity: 0,
|
|
43
|
-
} }
|
|
44
|
-
componentID={ val_componentID }
|
|
45
|
-
/> );
|
|
46
|
-
},
|
|
47
|
-
FadeUp: ( params ) => {
|
|
48
|
-
let {
|
|
49
|
-
animationDelay = 100,
|
|
50
|
-
animationTime = 300,
|
|
51
|
-
componentID = $.uuidGen(),
|
|
52
|
-
...others
|
|
53
|
-
} = params;
|
|
54
|
-
let [ val_componentID ] = useState( componentID );
|
|
55
|
-
|
|
56
|
-
useEffect( () => {
|
|
57
|
-
setTimeout( () => {
|
|
58
|
-
let Element = $( '[data-component-id="' + val_componentID + '"]' );
|
|
59
|
-
if ( !Element[ 0 ] ) return;
|
|
60
|
-
Element.css( {
|
|
61
|
-
transition: animationTime + 'ms'
|
|
62
|
-
} )
|
|
63
|
-
.await( 1 )
|
|
64
|
-
.css( {
|
|
65
|
-
opacity: 1,
|
|
66
|
-
paddingTop: 0
|
|
67
|
-
} );
|
|
68
|
-
},animationDelay );
|
|
69
|
-
},[] );
|
|
70
|
-
|
|
71
|
-
return ( <Box
|
|
72
|
-
paddingTop={ 2 }
|
|
73
|
-
{ ...others }
|
|
74
|
-
freeCSS={ {
|
|
75
|
-
...others.freeCSS,
|
|
76
|
-
opacity: 0,
|
|
77
|
-
} }
|
|
78
|
-
componentID={ val_componentID }
|
|
79
|
-
/> );
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import style from './style.module.scss';
|
|
2
|
-
|
|
3
|
-
type InfoProps = {
|
|
4
|
-
RippleElement: Jsmin.Method
|
|
5
|
-
startedAt: number
|
|
6
|
-
size: number
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
new class {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.UserEvent();
|
|
12
|
-
}
|
|
13
|
-
UserEvent() {
|
|
14
|
-
let RippleElementClassName = 'eff_ripple';
|
|
15
|
-
const EffectStart = ( event: Event ) => {
|
|
16
|
-
let startedAt = $.Time().time;
|
|
17
|
-
let target: HTMLElement = event.target as any;
|
|
18
|
-
|
|
19
|
-
let RippleElement = $( target.closest( '.' + RippleElementClassName ) );
|
|
20
|
-
let Color = RippleElement.findClass( /^eff_ripple-/ )[ 0 ].split( '-' )[ 1 ];
|
|
21
|
-
|
|
22
|
-
let
|
|
23
|
-
ID = 'RippleWrap-' + $.uuidGen(),
|
|
24
|
-
{
|
|
25
|
-
left,
|
|
26
|
-
top,
|
|
27
|
-
height,
|
|
28
|
-
width
|
|
29
|
-
} = RippleElement.position(),
|
|
30
|
-
{
|
|
31
|
-
pageXOffset,
|
|
32
|
-
pageYOffset
|
|
33
|
-
} = $.getScreenSize(),
|
|
34
|
-
{
|
|
35
|
-
x: cursorX,
|
|
36
|
-
y: cursorY
|
|
37
|
-
} = $.getCursor( event ),
|
|
38
|
-
size = Math.min( width * 1.5,300 ),
|
|
39
|
-
x = Math.max( cursorX - ( left + pageXOffset ),0 ),
|
|
40
|
-
y = Math.max( cursorY - ( top + pageYOffset ),0 );
|
|
41
|
-
|
|
42
|
-
let effectInfo: InfoProps = {
|
|
43
|
-
RippleElement,
|
|
44
|
-
startedAt,
|
|
45
|
-
size
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$( document ).addEvent( {
|
|
49
|
-
eventID: 'RippleMouseUp',
|
|
50
|
-
eventType: 'mouseup',
|
|
51
|
-
callback: () => {
|
|
52
|
-
EffectEnd( effectInfo );
|
|
53
|
-
}
|
|
54
|
-
} ).addEvent( {
|
|
55
|
-
eventID: 'RippleTouchEnd',
|
|
56
|
-
eventType: 'touchend',
|
|
57
|
-
callback: () => {
|
|
58
|
-
setTimeout( () => {
|
|
59
|
-
EffectEnd( effectInfo );
|
|
60
|
-
},20 );
|
|
61
|
-
}
|
|
62
|
-
} )
|
|
63
|
-
|
|
64
|
-
$( RippleElement )
|
|
65
|
-
.addClass( [
|
|
66
|
-
style.RippleElement,
|
|
67
|
-
style[ 'Color_' + Color ]
|
|
68
|
-
] )
|
|
69
|
-
.append( `<div class="${ style.RippleWrap }" id="${ ID }">
|
|
70
|
-
<div class="${ style.Wave }" />
|
|
71
|
-
</div>` )
|
|
72
|
-
.addEvent( {
|
|
73
|
-
eventID: 'RippleMouseOut',
|
|
74
|
-
eventType: 'mouseout',
|
|
75
|
-
callback: ( event ) => {
|
|
76
|
-
EffectEnd( effectInfo );
|
|
77
|
-
}
|
|
78
|
-
} )
|
|
79
|
-
.find( '#' + ID )
|
|
80
|
-
.find( '.' + style.Wave )
|
|
81
|
-
.css( { left: x,top: y } )
|
|
82
|
-
.await( 10 )
|
|
83
|
-
.css( {
|
|
84
|
-
height: size,
|
|
85
|
-
width: size,
|
|
86
|
-
opacity: '.3',
|
|
87
|
-
transition: '.25s'
|
|
88
|
-
} );
|
|
89
|
-
}
|
|
90
|
-
const EffectEnd = ( effectInfo: InfoProps ) => {
|
|
91
|
-
let {
|
|
92
|
-
RippleElement,
|
|
93
|
-
startedAt,
|
|
94
|
-
size
|
|
95
|
-
} = effectInfo;
|
|
96
|
-
|
|
97
|
-
let processTime = $.Time().time - startedAt;
|
|
98
|
-
let transition = processTime <= 400 ? '.75s' : '.55s';
|
|
99
|
-
let diameter = size * 2.5;
|
|
100
|
-
|
|
101
|
-
$( document ).removeEvent( [
|
|
102
|
-
'RippleMouseUp',
|
|
103
|
-
'RippleTouchMove',
|
|
104
|
-
'RippleTouchEnd',
|
|
105
|
-
] );
|
|
106
|
-
|
|
107
|
-
RippleElement
|
|
108
|
-
.removeEvent( [ 'RippleMouseOut' ] )
|
|
109
|
-
|
|
110
|
-
.find( '.' + style.Wave )
|
|
111
|
-
.css( {
|
|
112
|
-
height: diameter,
|
|
113
|
-
width: diameter,
|
|
114
|
-
opacity: '0',
|
|
115
|
-
transition: transition
|
|
116
|
-
} )
|
|
117
|
-
.await( 750 )
|
|
118
|
-
.parent()
|
|
119
|
-
.callback( ( Parent ) => {
|
|
120
|
-
Parent.remove();
|
|
121
|
-
} );
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
$( document )
|
|
125
|
-
.addEvent( {
|
|
126
|
-
eventType: 'touchstart',
|
|
127
|
-
target: '.' + RippleElementClassName,
|
|
128
|
-
callback: ( event ) => {
|
|
129
|
-
EffectStart( event );
|
|
130
|
-
}
|
|
131
|
-
} )
|
|
132
|
-
.addEvent( {
|
|
133
|
-
eventType: 'mousedown',
|
|
134
|
-
target: '.' + RippleElementClassName,
|
|
135
|
-
callback: ( event ) => {
|
|
136
|
-
if ( amotify.config.device.isTouchDevice ) return;
|
|
137
|
-
EffectStart( event );
|
|
138
|
-
}
|
|
139
|
-
} );
|
|
140
|
-
}
|
|
141
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import './Ripple';
|
|
2
|
-
import style from './style.module.scss';
|
|
3
|
-
|
|
4
|
-
import { FadeEffects } from './Fade';
|
|
5
|
-
|
|
6
|
-
const Effects: amotify.fn.Effects.Methods = {
|
|
7
|
-
...FadeEffects,
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
Effects
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** PuddingEffect */
|
|
15
|
-
new class {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.UserEvent();
|
|
18
|
-
}
|
|
19
|
-
UserEvent() {
|
|
20
|
-
$( document ).addEvent( {
|
|
21
|
-
eventType: 'click',
|
|
22
|
-
target: '.eff_pudding',
|
|
23
|
-
callback: function () {
|
|
24
|
-
$( this )
|
|
25
|
-
.removeClass( style.PuddingEffect )
|
|
26
|
-
.await( 1 )
|
|
27
|
-
.addClass( style.PuddingEffect )
|
|
28
|
-
.await( 510 )
|
|
29
|
-
.removeClass( style.PuddingEffect );
|
|
30
|
-
}
|
|
31
|
-
} )
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@use '@uniVar' as *;
|
|
2
|
-
.Ripple {
|
|
3
|
-
&Element {
|
|
4
|
-
transition: $animation-time-short;
|
|
5
|
-
position: relative;
|
|
6
|
-
-webkit-user-select: none;
|
|
7
|
-
user-select: none;
|
|
8
|
-
&.Color_ {
|
|
9
|
-
&white .RippleWrap {}
|
|
10
|
-
&cloud .RippleWrap .Wave {
|
|
11
|
-
background-color: rgba(var(--color-dark-rgb), .4) !important;
|
|
12
|
-
}
|
|
13
|
-
&theme .RippleWrap .Wave {
|
|
14
|
-
background-color: $color-theme-lighter !important;
|
|
15
|
-
opacity: .4;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
&Wrap {
|
|
20
|
-
position: absolute !important;
|
|
21
|
-
z-index: 100 !important;
|
|
22
|
-
top: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
border-radius: inherit;
|
|
28
|
-
pointer-events: none !important;
|
|
29
|
-
.Wave {
|
|
30
|
-
position: absolute;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
top: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
width: 0;
|
|
35
|
-
height: 0;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
transform: translate(-50%, -50%);
|
|
38
|
-
transition: 1s;
|
|
39
|
-
transition-timing-function: $animation-style1;
|
|
40
|
-
background-color: rgba(white, .75);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
//
|
|
45
|
-
.PuddingEffect {
|
|
46
|
-
animation: pdAnm .5s ease;
|
|
47
|
-
position: relative;
|
|
48
|
-
}
|
|
49
|
-
@keyframes pdAnm {
|
|
50
|
-
0% {
|
|
51
|
-
transform: scale3d(1, 1, 1);
|
|
52
|
-
}
|
|
53
|
-
10% {
|
|
54
|
-
transform: scale3d(1.1, 0.75, 1);
|
|
55
|
-
}
|
|
56
|
-
20% {
|
|
57
|
-
transform: scale3d(0.85, 1.15, 1);
|
|
58
|
-
}
|
|
59
|
-
30% {
|
|
60
|
-
transform: scale3d(1.05, 0.85, 1);
|
|
61
|
-
}
|
|
62
|
-
45% {
|
|
63
|
-
transform: scale3d(.95, 1.05, 1);
|
|
64
|
-
}
|
|
65
|
-
75% {
|
|
66
|
-
transform: scale3d(1.02, .95, 1);
|
|
67
|
-
}
|
|
68
|
-
100% {
|
|
69
|
-
transform: scale3d(1, 1, 1);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
:global {
|
|
73
|
-
.eff_ {
|
|
74
|
-
&expand:active {
|
|
75
|
-
transition: $animation-time-short;
|
|
76
|
-
transform: scale(1.05);
|
|
77
|
-
}
|
|
78
|
-
&shrink:active {
|
|
79
|
-
transition: $animation-time-short;
|
|
80
|
-
transform: scale(0.97);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|