{"action":"created","issue":{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/295","repository_url":"https://api.github.com/repos/jlmakes/scrollreveal.js","labels_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/295/comments","events_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/295/events","html_url":"https://github.com/jlmakes/scrollreveal.js/issues/295","id":178333634,"number":295,"title":"not work in Joomla ?","user":{"login":"PDX1337","id":22345729,"avatar_url":"https://avatars.githubusercontent.com/u/22345729?v=3","gravatar_id":"","url":"https://api.github.com/users/PDX1337","html_url":"https://github.com/PDX1337","followers_url":"https://api.github.com/users/PDX1337/followers","following_url":"https://api.github.com/users/PDX1337/following{/other_user}","gists_url":"https://api.github.com/users/PDX1337/gists{/gist_id}","starred_url":"https://api.github.com/users/PDX1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDX1337/subscriptions","organizations_url":"https://api.github.com/users/PDX1337/orgs","repos_url":"https://api.github.com/users/PDX1337/repos","events_url":"https://api.github.com/users/PDX1337/events{/privacy}","received_events_url":"https://api.github.com/users/PDX1337/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/labels/Question","name":"Question","color":"fbca04"},{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/labels/Third%20Party","name":"Third Party","color":"945fdb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T12:33:57Z","updated_at":"2016-09-21T13:32:27Z","closed_at":null,"body":"- Ubuntu, Apache2, php7, jquery 2.10\r\n- latest firefox\r\n- latest scrollreveal version\r\n- joomla 3,6,2\r\n\r\nHi,\r\ni load the my Joomla template in blocks\r\n\r\nso head.php\r\n\r\n```php\r\n<?php $this->addScript(T3_TEMPLATE_URL.'/js/scrollreveal.min.js'); ?>\r\n<script>\r\n  window.sr = new ScrollReveal();\r\n\r\n  // Add class to <html> if ScrollReveal is supported\r\n  if (sr.isSupported()) {\r\n    document.documentElement.classList.add('sr');\r\n  }\r\n```\r\n\r\nlayout.php\r\n\r\n```php\r\n\t<?php $this->loadBlock('spotlight-14') ?>\r\n\t<?php $this->loadBlock('spotlight-15') ?>\r\n\t<?php $this->loadBlock('spotlight-16') ?>\r\n\t<?php $this->loadBlock('spotlight-17') ?>\r\n\t<?php $this->loadBlock('spotlight-18') ?>\r\n\t<?php $this->loadBlock('spotlight-19') ?>\r\n\t<?php $this->loadBlock('spotlight-20') ?>\r\n\t\r\n\t<?php $this->loadBlock('footer') ?>\r\n\t<?php $this->loadBlock('spotlight-21') ?>\r\n</div>\r\n\r\n   <script>\r\n      sr.reveal('.fooReveal', { container: '.fooContainer' });\r\n    </script>\r\n</body>\r\n</html>\r\n\r\n```\r\ntemplate.css\r\n\r\n` .sr .fooReveal { visibility: hidden; }`\r\n\r\n\r\nhope you can help \r\n\r\nRegards\r\nPDX\r\n\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/comments/248613218","html_url":"https://github.com/jlmakes/scrollreveal.js/issues/295#issuecomment-248613218","issue_url":"https://api.github.com/repos/jlmakes/scrollreveal.js/issues/295","id":248613218,"user":{"login":"jlmakes","id":2044842,"avatar_url":"https://avatars.githubusercontent.com/u/2044842?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmakes","html_url":"https://github.com/jlmakes","followers_url":"https://api.github.com/users/jlmakes/followers","following_url":"https://api.github.com/users/jlmakes/following{/other_user}","gists_url":"https://api.github.com/users/jlmakes/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmakes/subscriptions","organizations_url":"https://api.github.com/users/jlmakes/orgs","repos_url":"https://api.github.com/users/jlmakes/repos","events_url":"https://api.github.com/users/jlmakes/events{/privacy}","received_events_url":"https://api.github.com/users/jlmakes/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T13:32:27Z","updated_at":"2016-09-21T13:32:27Z","body":"You call `sr.reveal()` on the elements with the `.fooReveal` class, but I don't see any; you declared a custom container with the class `.fooContainer` but I don't see it -- Plus, it's uncommon that you will need a custom container -- and if you do, it'll have to be a fixed-height element with `overflow-y: scroll` to work correctly.\r\n\r\nThese names `.fooReveal` and `.fooContainer` are things I used in the documentation, and don't need to be a part of your project.\r\n\r\n### Just Keep It Simple\r\n\r\n```html\r\n<?php $this->addScript(T3_TEMPLATE_URL.'/js/scrollreveal.min.js'); ?>\r\n\r\n<div class=\"myClass\">Hello</div>\r\n\r\n<script>\r\n  window.sr = new ScrollReveal();\r\n  sr.reveal('.myClass');\r\n</script>\r\n```"}}
{"actor":{"display_login":"jlmakes"}}