Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/dummy/app/components/two-lists-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export default Component.extend({
if (this.get('bounceBack') && bounceCounter > 0) {
later(() => this.send('move', item, bounceCounter - 1), 1000);
}
},
changeScale(scaleValue) {
this.element.style['transform-origin'] = '0px 0px';
this.element.style.transform = `scale(${scaleValue})`;
}
}
});
Expand Down
11 changes: 10 additions & 1 deletion tests/dummy/app/templates/components/two-lists-example.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<div class="scenario-two-lists">
<div class="controls">
<label>Bounce back <input type="checkbox" checked={{bounceBack}} onchange={{action (mut bounceBack) (not bounceBack)}}></label>

<label>scale:</label>

<button onclick={{action 'changeScale' 0.5}}>50%</button>
<button onclick={{action 'changeScale' 0.8}}>80%</button>
<button onclick={{action 'changeScale' 0.9}}>90%</button>
<button onclick={{action 'changeScale' 1}}>100%</button>
<button onclick={{action 'changeScale' 1.1}}>110%</button>
<button onclick={{action 'changeScale' 1.2}}>120%</button>
<button onclick={{action 'changeScale' 1.5}}>150%</button>
</div>

{{#animated-container}}
Expand All @@ -20,5 +30,4 @@
</div>
{{/animated-each}}
{{/animated-container}}

</div>
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/demos/two-lists.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{two-lists-example}}
{{two-lists-example}}