# Tweening effects for Play Button

**URL:** <https://forum.playcanvas.com/t/tweening-effects-for-play-button/30536>\
**Category:** Help & Support\
**Created:** [April 11, 2023, 6:28am UTC](https://forum.playcanvas.com/t/tweening-effects-for-play-button/30536 "2023-04-11T06:28:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gouthamamin](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/gouthamamin/32/28733_2.png) [@gouthamamin](https://forum.playcanvas.com/u/gouthamamin)\
**Post date:** [April 11, 2023, 6:28am UTC](https://forum.playcanvas.com/t/tweening-effects-for-play-button/30536/1 "2023-04-11T06:28:25Z")

</div>

How Can I use hover effects or scaleUp effects while touching play button using tween .I have used following code to scaleUp using manual method .I want to do the same using tween .

```javascript
var GameStart = pc.createScript('gameStart');

GameStart.prototype.initialize = function () {

  this.button = this.entity;
  this.button.element.on('mousedown', this.onButtonDown, this);
  this.button.element.on('mouseup', this.onButtonUp, this);

};

GameStart.prototype.onButtonDown = function (event) {
  var GSUI = this.app.root.findByTag("gst");
  this.scaleButton(1.1);
  setTimeout(function () {
    GSUI[0].enabled = false;
  }, 350);

};

GameStart.prototype.onButtonUp = function (event) {
  var GAME = this.app.root.findByTag("game");
  this.scaleButton(1.0);
  setTimeout(function () {
    GAME[0].enabled = true;
  }, 350);

};

GameStart.prototype.scaleButton = function (scale) {
  this.button.setLocalScale(scale, scale, scale);
};

```

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [April 11, 2023, 11:25am UTC](https://forum.playcanvas.com/t/tweening-effects-for-play-button/30536/2 "2023-04-11T11:25:45Z")

</div>

What have you tried so far with the tween library? Can you post your test project here?
