Git Product home page Git Product logo

dyncss's Introduction

dyncss's People

Contributors

vendethiel avatar vzaccaria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dyncss's Issues

Cannot make it working

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?

Stylesheets loaded through ajax

How can I tell dynCSS to scan stylesheets loaded through ajax after the page was created?
Is there something like a rescan-function or a funktion to scan a special stylesheet?

Thanks in advance
Tobi
ps. Great script - it makes my life easier!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.