This repository was archived by the owner on Sep 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +48
-17
lines changed
svelte-materialify/src/components/Overlay Expand file tree Collapse file tree 3 files changed +48
-17
lines changed Original file line number Diff line number Diff line change 2
2
"version" : 3 ,
3
3
"name" : " Overlay" ,
4
4
"data" : [
5
+ {
6
+ "visibility" : " public" ,
7
+ "description" : null ,
8
+ "keywords" : [],
9
+ "name" : " transition" ,
10
+ "kind" : " let" ,
11
+ "static" : false ,
12
+ "readonly" : false ,
13
+ "type" : {
14
+ "kind" : " type" ,
15
+ "text" : " any" ,
16
+ "type" : " any"
17
+ }
18
+ },
19
+ {
20
+ "visibility" : " public" ,
21
+ "description" : null ,
22
+ "keywords" : [],
23
+ "name" : " inOpts" ,
24
+ "kind" : " let" ,
25
+ "static" : false ,
26
+ "readonly" : false ,
27
+ "type" : {
28
+ "kind" : " type" ,
29
+ "text" : " any" ,
30
+ "type" : " any"
31
+ }
32
+ },
33
+ {
34
+ "visibility" : " public" ,
35
+ "description" : null ,
36
+ "keywords" : [],
37
+ "name" : " outOpts" ,
38
+ "kind" : " let" ,
39
+ "static" : false ,
40
+ "readonly" : false ,
41
+ "type" : {
42
+ "kind" : " type" ,
43
+ "text" : " any" ,
44
+ "type" : " any"
45
+ }
46
+ },
5
47
{
6
48
"visibility" : " public" ,
7
49
"description" : null ,
77
119
},
78
120
"defaultValue" : false
79
121
},
80
- {
81
- "visibility" : " public" ,
82
- "description" : null ,
83
- "keywords" : [],
84
- "name" : " fadeOptions" ,
85
- "kind" : " let" ,
86
- "static" : false ,
87
- "readonly" : false ,
88
- "type" : {
89
- "kind" : " type" ,
90
- "text" : " any" ,
91
- "type" : " any"
92
- }
93
- },
94
122
{
95
123
"visibility" : " public" ,
96
124
"description" : null ,
Original file line number Diff line number Diff line change 3
3
import BackgroundColor from ' ../../internal/BackgroundColor' ;
4
4
5
5
let klass = ' ' ;
6
+ export let transition = fade;
7
+ export let inOpts = { duration: 250 };
8
+ export let outOpts = { duration: 250 };
6
9
export let active = true ;
7
10
export let opacity = 0.46 ;
8
11
export let color = ' rgb(33, 33, 33)' ;
9
12
export let index = 5 ;
10
13
export let absolute = false ;
11
- export let fadeOptions = {};
12
14
export let style = ' ' ;
13
15
export { klass as class };
14
16
</script >
18
20
19
21
{#if active }
20
22
<div
21
- transition:fade ={fadeOptions }
23
+ in:transition ={inOpts }
24
+ out:transition ={outOpts }
22
25
class ="s-overlay {klass }"
23
26
class:absolute
24
27
on:click
You can’t perform that action at this time.
0 commit comments