feat: 添加blend-mode
This commit is contained in:
parent
7eb59e5f29
commit
f4c6de2e9d
|
|
@ -27,7 +27,9 @@ img {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.container {
|
.container {
|
||||||
.hover-tilt {
|
.hover-tilt {
|
||||||
&::part(tilt) {
|
|
||||||
|
&::part(tilt),
|
||||||
|
&::part(container) {
|
||||||
&::before {
|
&::before {
|
||||||
border-radius: var(--border-radius, 0px);
|
border-radius: var(--border-radius, 0px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
const editorConfig = [
|
const editorConfig = [
|
||||||
{
|
{
|
||||||
label: "border-radius",
|
label: "border-radius",
|
||||||
value: 0,
|
value: 10,
|
||||||
params: {
|
params: {
|
||||||
min: 0,
|
min: 0,
|
||||||
step: 1,
|
step: 1,
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,24 @@ export const hoverTiltConfig = [
|
||||||
step: 1
|
step: 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//@see https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/blend-mode
|
||||||
|
// normal |
|
||||||
|
// darken |
|
||||||
|
// multiply |
|
||||||
|
// color-burn |
|
||||||
|
// lighten |
|
||||||
|
// screen |
|
||||||
|
// color-dodge |
|
||||||
|
// overlay |
|
||||||
|
// soft-light |
|
||||||
|
// hard-light |
|
||||||
|
// difference |
|
||||||
|
// exclusion |
|
||||||
|
// hue |
|
||||||
|
// saturation |
|
||||||
|
// color |
|
||||||
|
// luminosity
|
||||||
|
|
||||||
{
|
{
|
||||||
label: "blend-mode",
|
label: "blend-mode",
|
||||||
value: "overlay",
|
value: "overlay",
|
||||||
|
|
@ -65,6 +83,18 @@ export const hoverTiltConfig = [
|
||||||
"screen": "screen",
|
"screen": "screen",
|
||||||
"multiply": "multiply",
|
"multiply": "multiply",
|
||||||
'plus-lighter': 'plus-lighter',
|
'plus-lighter': 'plus-lighter',
|
||||||
|
//--------------
|
||||||
|
"normal": "normal",
|
||||||
|
"darken": "darken",
|
||||||
|
"color-dodge": "color-dodge",
|
||||||
|
"lighten": "lighten",
|
||||||
|
"soft-light": "soft-light",
|
||||||
|
"difference": "difference",
|
||||||
|
"exclusion": "exclusion",
|
||||||
|
"hue": "hue",
|
||||||
|
"saturation": "saturation",
|
||||||
|
"color": "color",
|
||||||
|
"luminosity": "luminosity",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -94,7 +124,7 @@ export const hoverTiltConfig = [
|
||||||
//@see https://hover-tilt.simey.me/options/props/#glaremaskmode
|
//@see https://hover-tilt.simey.me/options/props/#glaremaskmode
|
||||||
{
|
{
|
||||||
label: "glare-mask-mode",
|
label: "glare-mask-mode",
|
||||||
value: "outside",
|
value: "none",
|
||||||
params: {
|
params: {
|
||||||
// 'match-source' | 'luminance' | 'alpha' | 'none' | undefined
|
// 'match-source' | 'luminance' | 'alpha' | 'none' | undefined
|
||||||
options: {
|
options: {
|
||||||
|
|
@ -102,7 +132,6 @@ export const hoverTiltConfig = [
|
||||||
"luminance": "luminance",
|
"luminance": "luminance",
|
||||||
"alpha": "alpha",
|
"alpha": "alpha",
|
||||||
"none": "none",
|
"none": "none",
|
||||||
// "undefined": undefined
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user