# Difference between "Change" and "Set"

**URL:** <https://forums.fusetools.com/t/difference-between-change-and-set/6558>\
**Category:** General\
**Created:** [May 4, 2017, 5:21pm UTC](https://forums.fusetools.com/t/difference-between-change-and-set/6558 "2017-05-04T17:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clifflo.the.diskjock](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@clifflo.the.diskjock](https://forums.fusetools.com/u/clifflo.the.diskjock)\
**Post date:** [May 4, 2017, 5:21pm UTC](https://forums.fusetools.com/t/difference-between-change-and-set/6558/1 "2017-05-04T17:21:52Z")

</div>

According to the documentation, “Change Class” means “Temporarily changes the value of a property while its containing trigger is active.”, and “Set Class” means “Permanently changes the value of a property.” I am not very sure what does that mean to the animation, as the CSS style is by definition stateful and bind to an observable, change temporarily or permanently both just mean change an observable. Do you mean that “Set” is the final state whilst the “Change” is the state involved in transition?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [May 4, 2017, 7:08pm UTC](https://forums.fusetools.com/t/difference-between-change-and-set/6558/2 "2017-05-04T19:08:08Z")

</div>

Hi clifflo.the.diskjockey,

when the containing trigger deactivates, the property affected by `Change` will animate back to its “rest state” - the value it initially had. A property affected by `Set` will retain the value set.

Consider the following:

```auto
<WhilePressed>
    <Change myRectangle.Opacity="0.5" />
    <Set myRectangle.Color="#f00" />
</WhilePressed>

```

The `myRectangle` rectangle will only be half-transparent while it’s pressed and go back to initial opacity value when released. However, it will become red while it’s pressed and will stay red even after released.

Hope this helps!
