{"action":"created","issue":{"url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/20","repository_url":"https://api.github.com/repos/drcmda/react-springy-parallax","labels_url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/20/comments","events_url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/20/events","html_url":"https://github.com/drcmda/react-springy-parallax/issues/20","id":294204532,"number":20,"title":"How the animation could be edited and controlled?","user":{"login":"01Kuzma","id":569504,"avatar_url":"https://avatars1.githubusercontent.com/u/569504?v=4","gravatar_id":"","url":"https://api.github.com/users/01Kuzma","html_url":"https://github.com/01Kuzma","followers_url":"https://api.github.com/users/01Kuzma/followers","following_url":"https://api.github.com/users/01Kuzma/following{/other_user}","gists_url":"https://api.github.com/users/01Kuzma/gists{/gist_id}","starred_url":"https://api.github.com/users/01Kuzma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01Kuzma/subscriptions","organizations_url":"https://api.github.com/users/01Kuzma/orgs","repos_url":"https://api.github.com/users/01Kuzma/repos","events_url":"https://api.github.com/users/01Kuzma/events{/privacy}","received_events_url":"https://api.github.com/users/01Kuzma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-04T15:17:18Z","updated_at":"2018-02-05T15:46:07Z","closed_at":"2018-02-05T13:14:28Z","author_association":"NONE","body":"Hi!\r\nCould you please explain more about how to use animation with you library?\r\nIn you sample:\r\n```\r\n<img\r\n     src={url('server')}\r\n     style={{ width: '20%', transform: [{ scale: this.animation }] }}\r\n   />\r\n```\r\n\r\nis `this.animation` pre-difined value?\r\nHow different animations could be used? such as bounce-in, rotation, spin?\r\nI've tried this:\r\n```\r\nstyle={{\r\n          transform: [{rotate: spin}] }}\r\n```\r\nBut `spin` is undefined.\r\n\r\nThank you very much\r\nP.S. I've glanced at http://browniefed.com/react-native-animation-book/ but it looks like more advanced examples"},"comment":{"url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/comments/363124474","html_url":"https://github.com/drcmda/react-springy-parallax/issues/20#issuecomment-363124474","issue_url":"https://api.github.com/repos/drcmda/react-springy-parallax/issues/20","id":363124474,"user":{"login":"drcmda","id":2223602,"avatar_url":"https://avatars0.githubusercontent.com/u/2223602?v=4","gravatar_id":"","url":"https://api.github.com/users/drcmda","html_url":"https://github.com/drcmda","followers_url":"https://api.github.com/users/drcmda/followers","following_url":"https://api.github.com/users/drcmda/following{/other_user}","gists_url":"https://api.github.com/users/drcmda/gists{/gist_id}","starred_url":"https://api.github.com/users/drcmda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcmda/subscriptions","organizations_url":"https://api.github.com/users/drcmda/orgs","repos_url":"https://api.github.com/users/drcmda/repos","events_url":"https://api.github.com/users/drcmda/events{/privacy}","received_events_url":"https://api.github.com/users/drcmda/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T15:46:07Z","updated_at":"2018-02-05T15:46:07Z","author_association":"OWNER","body":"@01Kuzma everything that happens within these layers is basically up to you, react-parallax will just shift the stuff around on scrolling. Inside of course you can use animated or react-motion or anything you like to animate contents separately.\r\n\r\nIf you want to keep using animated make sure to use it correctly, you can't put this.animation (an animatable value i suppose) into a regular react style. `Animated.div`, `Animated.span` and `Animated.img` extend styles so that it is possible.\r\n\r\nI'd suggest playing around with that codesandbox some more, try to get an image animating. Then read some more docs on how to use animated, there's a lot of things it can do."}}
{"actor":{"display_login":"drcmda"}}