You can use this easily in any JavaScript project. As an example, I’m using it with Svelte to switch my Plotly charts between light and dark mode.
http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png00Génesishttp://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.pngGénesis2020-10-10 15:14:002021-06-10 15:22:09Getting a CSS Variable’s Value
-rv stand for recurse into directories and increase verbosity (see more info while copying)
http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png00Génesishttp://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.pngGénesis2020-09-11 13:51:002021-05-11 13:59:30How to copy all your Node projects to your external drive?
http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png00Génesishttp://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.pngGénesis2020-08-30 12:12:002021-03-30 12:23:15Change radio button color and size
This is a basic but really useful (less is more) example of how to use Plotly to show a measure varying over time (live). You can resize the window here or on JSFiddle to check how it fits to the render area.
http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png00Génesishttp://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.pngGénesis2020-07-04 20:21:002020-11-04 20:42:05Responsive Time Series with JavaScript and Plotly
I created the exact same app in Vue and Vanilla. I called it Papafilms (yes, potatos and films…), you can search films, save your favorite ones and see details in a cool minimalistic and responsive interface. A small basic app to test Vue vs Vanilla code. Check it here from any device.
Both versions are exactly the same, only Vue is a little bit slower and with more boilerplate. I spent most of the time with CSS. In this case, for such a small app, it could be enaugh with just modern Vanilla. However, a really good point about Vue (or React) is that they make all developers to code in more or less a similar pattern.
I have used React and Vue before. They are very similar, it’s not that I don’t like them but they tie you to many dependencies, are verbose, heavyweight (not as much as Angular), slow (Virtual DOM) and their components are not compatible. Those frontend frameworks/libraries had a reason to exist in 2013, but with the web components and the current state of Browser Engines there is no real need for the current abuse of Angular, React and Vue in small apps.
To be honest with you I’m switching to a totally different approach, nowdays I’m using Svelte in small, medium and large apps (used by Facebook, Apple, etc).
Here you have some of the Svelte main advantages:
Easy
Nice syntax and semantics
Write less code
Truly reactivity
Transitions and animations
Compilers enable output flexibility
Great performance (vanilla, no virtual DOM, no need to load the framework in the browser, etc)
Getting a CSS Variable’s Value
/in CSS3, JavaScript/by GénesisYou can use this easily in any JavaScript project. As an example, I’m using it with Svelte to switch my Plotly charts between light and dark mode.
How to copy all your Node projects to your external drive?
/in Tooling/by GénesisUse rsync and exclude node_modules:
-rv stand for recurse into directories and increase verbosity (see more info while copying)
Change radio button color and size
/in CSS3, HTML5/by GénesisResponsive Time Series with JavaScript and Plotly
/in CSS3, HTML5, JavaScript/by GénesisThis is a basic but really useful (less is more) example of how to use Plotly to show a measure varying over time (live). You can resize the window here or on JSFiddle to check how it fits to the render area.
Papafilms
/in App, CSS3, HTML5, JavaScript/by GénesisI created the exact same app in Vue and Vanilla. I called it Papafilms (yes, potatos and films…), you can search films, save your favorite ones and see details in a cool minimalistic and responsive interface. A small basic app to test Vue vs Vanilla code. Check it here from any device.
Both versions are exactly the same, only Vue is a little bit slower and with more boilerplate. I spent most of the time with CSS. In this case, for such a small app, it could be enaugh with just modern Vanilla. However, a really good point about Vue (or React) is that they make all developers to code in more or less a similar pattern.
I have used React and Vue before. They are very similar, it’s not that I don’t like them but they tie you to many dependencies, are verbose, heavyweight (not as much as Angular), slow (Virtual DOM) and their components are not compatible. Those frontend frameworks/libraries had a reason to exist in 2013, but with the web components and the current state of Browser Engines there is no real need for the current abuse of Angular, React and Vue in small apps.
To be honest with you I’m switching to a totally different approach, nowdays I’m using Svelte in small, medium and large apps (used by Facebook, Apple, etc).
Here you have some of the Svelte main advantages:
Give it a try for yourself and enjoy coding!