I would love a trigger which allows me to resize an object over a period of time (to be smaller or bigger than the original). I understand I can create a smaller or bigger object using States, but I would prefer the transition to be more gradual. Are there any plans to develop a 'resize' trigger?
What type of object would you like to resize? You could probably do this by placing the object inside of a web object and having the web object change the size of the object by looking for a Storyline variable.
I would also love this feature! It would be nice to create a slow zoom in effect on photos, for instance. I'm interested to hear more about this web object idea, though!
Wow, that's really cool! Thanks for sharing it. Here is the javascript code for anyone interested:
setInterval(getSize, 100);
function getSize() { var player = parent.GetPlayer(); var imageSize = player.GetVar("Slider1"); document.getElementById("myImage").style.height = imageSize + "px"; }
That code checks the value of a Storyline variable 10 times every second (the 100 is 100 milliseconds) and updates the height of the picture with the new value.
Thanks for responding, Michael. I am trying to resize a picture. I opened your story, but I could not get it to work for some reason. Perhaps there is a long way around this (and thanks for sharing). But wouldn't it just be a whole lot easier to use a resize trigger, if one were available? The fact that you can do this using Javascript (thanks Rena) seems to indicate that it can't be too difficult to develop one. Do you know if it is on the product development pipeline?
I have never created a web object before and don't know which site I could use. But I love your idea of using a slider plus a variable to automatically adjust the slider. Brilliant!
I have submitted a request for a resize trigger. I can see it isn't currently on their road map. Fingers crossed this gets added to the list!
Web objects are just web pages (local or on the internet) that have been embedded in the course. You can create them with anything you would use to create a web page. The slider gives you an easy way for the user to adjust the value of a variable, you could adjust the variable with any other method and the photo would still change sizes.
If a feature request is not a popular one, it could take years before it makes it into Storyline, if at all. I would suggest you just use a workaround for now.
13 Replies
What type of object would you like to resize? You could probably do this by placing the object inside of a web object and having the web object change the size of the object by looking for a Storyline variable.
I would also love this feature! It would be nice to create a slow zoom in effect on photos, for instance. I'm interested to hear more about this web object idea, though!
I've attached a simple example that uses an image inside of a web object and a Storyline slider that is used to adjust size.
This post was removed by the author
Wow, that's really cool! Thanks for sharing it. Here is the javascript code for anyone interested:
setInterval(getSize, 100);
function getSize() {
var player = parent.GetPlayer();
var imageSize = player.GetVar("Slider1");
document.getElementById("myImage").style.height = imageSize + "px";
}
That code checks the value of a Storyline variable 10 times every second (the 100 is 100 milliseconds) and updates the height of the picture with the new value.
Thanks for responding, Michael. I am trying to resize a picture. I opened your story, but I could not get it to work for some reason. Perhaps there is a long way around this (and thanks for sharing). But wouldn't it just be a whole lot easier to use a resize trigger, if one were available? The fact that you can do this using Javascript (thanks Rena) seems to indicate that it can't be too difficult to develop one. Do you know if it is on the product development pipeline?
The best you can do is to submit a feature request and hope that many others also want that feature, or it may never be implemented.
Thanks Michael. Do you know how I go about doing this?
Read this first https://articulate.com/support/article/How-We-Manage-Feature-Requests
And then go here if you think it's worthwhile https://articulate.com/support/contact/feature-request
Awesome. I've done that. Thanks!
If you could not get this working, you can see a live demo of it here http://andersonelearning.com/demo/Resize_Image/story_html5.html
Thanks Michael! I can see the end result now.
I have never created a web object before and don't know which site I could use. But I love your idea of using a slider plus a variable to automatically adjust the slider. Brilliant!
I have submitted a request for a resize trigger. I can see it isn't currently on their road map. Fingers crossed this gets added to the list!
Many thanks.
Web objects are just web pages (local or on the internet) that have been embedded in the course. You can create them with anything you would use to create a web page. The slider gives you an easy way for the user to adjust the value of a variable, you could adjust the variable with any other method and the photo would still change sizes.
If a feature request is not a popular one, it could take years before it makes it into Storyline, if at all. I would suggest you just use a workaround for now.
This discussion is closed. You can start a new discussion or contact Articulate Support.