diff --git a/pages/CSS/transition/transition.uvue b/pages/CSS/transition/transition.uvue index d909b11d446d6542e97c8c9de23b00ab35b5f0f1..fca61ab60675d1ad010746c9ba640aea06f225ba 100644 --- a/pages/CSS/transition/transition.uvue +++ b/pages/CSS/transition/transition.uvue @@ -78,6 +78,7 @@ isTransitionStylePadding: false, stylePadding: null as UniElement | null, isTransitionstyleBackground: false, + isTransitionstyleBackground2: false, styleBackground: null as UniElement | null, styleBackground2: null as UniElement | null, isTransitionStyleTransform: false, @@ -156,11 +157,11 @@ this.isTransitionstyleBackground = !this.isTransitionstyleBackground }, changeBackground2() { - this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground + this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground2 ? 'brown' : 'rgba(0, 0, 0, 0.5);' ) - this.isTransitionstyleBackground = !this.isTransitionstyleBackground + this.isTransitionstyleBackground2 = !this.isTransitionstyleBackground2 }, propertyChangeBackground() { if (!this.isSetTransition) {