Make your site come to life with Dynamic CSS.
vzaccaria / dyncss Goto Github PK
View Code? Open in Web Editor NEWDynamic CSS Rules
Dynamic CSS Rules
Make your site come to life with Dynamic CSS.
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!
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?
When I go to http://www.vittoriozaccaria.net/dyn-css/ the scrolling is painfully "laggy".
You should remove the bower_components
directory from your repository as bower.json
will take care of its creation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.