0.4.2 • Published 1 year ago

mofron-comp-modalfil v0.4.2

Weekly downloads
43
License
MIT
Repository
github
Last release
1 year ago

mofron-comp-modalfil

mofron is module based frontend framework.

modal filter component for mofron

apply a dim filter to the entire screen as when displaying a modal window

Feature

  • modal windows can be easily implemented by adding child components to this component
  • it is possible to make the back look like frosted glass (blur)

Attention

  • default visible is false
  • this component must be positioned to root for enabling the "blur" function
  • other components that are the same hierarchy from this component are added mofron-effect-blur.

Install

npm install mofron mofron-comp-modalfil

Sample

<setting>
    <tag load="mofron-comp-text">Text</tag>
    <tag load="mofron-comp-modalfil">Mdlfil</tag>
</setting>

<script run=after>
    mfil.visible(true);
</script>

<Text>Modal Filter</Text>
<Mdlfil name=mfil blur=(0.1rem,2000)><Mdlfil>

Parameter

ShortFormParameter NameTypeDescription
mainColormixed (color)string: background color name, #hex
array: red, green, blue, (alpha)
key-valuestyle option
baseColormixed (color)string: background color name, #hex
array: red, green, blue, (alpha)
key-valuestyle option
blurstring (size)blur value
numberblur speed (ms)
speednumberblur speed (ms)
0.4.2

1 year ago

0.4.1

2 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago