{"action":"closed","issue":{"url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/728","labels_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/728/comments","events_url":"https://api.github.com/repos/Prinzhorn/skrollr/issues/728/events","html_url":"https://github.com/Prinzhorn/skrollr/issues/728","id":84487969,"number":728,"title":"using constants as data-values","user":{"login":"zoltanseer","id":3284210,"avatar_url":"https://avatars.githubusercontent.com/u/3284210?v=3","gravatar_id":"","url":"https://api.github.com/users/zoltanseer","html_url":"https://github.com/zoltanseer","followers_url":"https://api.github.com/users/zoltanseer/followers","following_url":"https://api.github.com/users/zoltanseer/following{/other_user}","gists_url":"https://api.github.com/users/zoltanseer/gists{/gist_id}","starred_url":"https://api.github.com/users/zoltanseer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoltanseer/subscriptions","organizations_url":"https://api.github.com/users/zoltanseer/orgs","repos_url":"https://api.github.com/users/zoltanseer/repos","events_url":"https://api.github.com/users/zoltanseer/events{/privacy}","received_events_url":"https://api.github.com/users/zoltanseer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T10:39:57Z","updated_at":"2015-06-19T12:20:52Z","closed_at":"2015-06-19T12:20:52Z","body":"Hi. Maybe I'm missing something, but is it possible to use constants for values, too?\r\nFor ex:\r\n```\r\n<div data-_foo=\"_bar\"></div>\r\n```\r\nand\r\n```\r\nskrollr.init({\r\n   constants: {\r\n      foo: function () { return 500; },\r\n      bar: function() { return 'top: 200px';}\r\n   }\r\n});\r\n```\r\nIt would be pretty helpful, for example when the animation values depends on the screen size."}}