-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Hello @vzaccaria !
I like your approach. Thanks for sharing this lib. I wanted to try it on my new project but I could not make it working by following your website instructions.
After having installed the lib with Bower, adding the following line extracted from the website:
<script src='bower_components/dyn-css/dyncss.js' type='text/javascript' />
raise an error in the web console. <script src='bower_components/dyn-css/lib/dyncss.js' type='text/javascript' /> seems to be the correct line, isn't it?
More importantly, while I can see it working on your demo/doc page, the -dyn-margin-top: '(@win-height - @el-height)/2.0'; css property does not update the related element style on my page, nor by default, nor by resizing the window, nor by scrolling the page. The lib does not seem to do anything, and yet the lib seems to be successfully imported since window.dynCss is actually defined.
A friend of mine also tried it on his project, unsuccessfully as well. Have you any idea of what may cause such an issue?