top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

    Get Free Article Updates

Facebook Login
Site Registration
Print Preview

Small Overview about DynCss?

0 votes
67 views

What is DynCSS?

DynCSS is a small Javascript add-on for your web pages. It parses your CSS and converts all the rules with prefix -dyn-* into dynamic Javascript that is executed on browser's events like scroll and resize 

A JavaScript library for changing colors (colors AND images) insinde CSS files on-the-fly

You can make dynamic any CSS property — provided that it is writable by jQuery's .css() method. You do this by appending the -dyn- prefix and specifying a quoted Javascript expression.

You can use placeholders to access dynamic information about the document; 

Here's a list of built-in placeholders you can use:
Prefixes    Description
@win-foo    dynamically evaluates window.foo()
@el-foo    dynamically evaluates $(current-selector).css(foo)
@jq-foo    dynamically evaluates $(current-selector).foo()

Example:

Following CSS will center vertically .header, dynamically changing margin-top as the window is resized:

.header {
 -dyn-margin-top: '(@win-height - @el-height)/2.0';
}

For more examples visit here - https://modernweb.com/dynamic-css-with-dyncss/ 

posted Apr 6 by Manish Tiwari

  Promote This Article
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button


Related Articles

What is ECharts?

ECharts is a state machine-based programming language for event-driven systems derived from the standardized UML Statecharts language.ECharts is a hosted language which means that it is dependent on an underlying programming language such as Java.

ECharts is an awesome tool for manipulating data once it’s charted because it has one unique feature: Drag-Recalculate allows users to drag and drop sections of data from one chart to another and have the charts recalculate in real-time.

ECharts is a most impressive tool for data visualization: it's fully open-source, it's sophisticated-yet-flexible, and it keeps abreast of the era of 'big data'!

ECharts is open, simple and elegant. 1.0 was great, and 2.0 was leapfrogged in just a year with something even more amazing.

ECharts represents a new generation of visualization tools for big data. 

ECharts is a comprehensive charting library offering a painless way of adding interactive charts to your commercial products. On the foundation of ZRender-based (a whole new lightweight canvas library) coordinate system, legend, tooltip, toolbox and other basic components, ECharts currently supports line, column, scatter, pie, radar, candlestick, chord, gauge, funnel, map and force-directed chart types, many of these can be combined in one chart.

Video for ECharts

https://www.youtube.com/watch?v=MF34Cgk5Rp0​

 

 

READ MORE

What is RXJS?

RxJs stands for Reactive Extensions for Javascript, and its an implementation of Observables for Javascript. If Observables make it into ES7, you could see RxJs more or less as a pollyfill.​

It which brings the concept of Observables, which we know and love a lot in a lot of server side technologies, to Javascript world. Angular2 team are moving towards Observables instead of Javascript Promises for Http and Form data.

In ReactiveX an observer subscribes to an Observable. Then that observer reacts to whatever item or sequence of items the Observable emits. This pattern facilitates concurrent operations because it does not need to block while waiting for the Observable to emit objects, but instead it creates a sentry in the form of an observer that stands ready to react appropriately at whatever future time the Observable does so.

The main purpose of using Observables is to observe the behaviour of a variable. In an imperative way, a variable is only changed when its state is mutated by assigning a new or updated value.

Observables follow the Observer pattern, where a single piece of state (the Observable) is watched by one or more Observers which can react as it changes over time.

 

Video for RXJS?

https://www.youtube.com/watch?v=ZmEvKLYF0os​

READ MORE

What is Plotly.Js

Built on top of d3.js and stack.gl, plotly.js is a high-level, declarative charting library. plotly.js ships with 20 chart types, including 3D charts, statistical graphs, and SVG maps. 

plotly.js charts are shipped with zoom, pan, hover, and click interactions. Click-and-drag to zoom into a region, double-click to autoscale, click on legend items to toggle traces.

NPM Command :

npm install plotly.js

Modele Example : 

// in custom-plotly.js
var Plotly = require('plotly.js/lib/core');

// Load in the trace types for pie, and choropleth
Plotly.register([
    require('plotly.js/lib/pie'),
    require('plotly.js/lib/choropleth')
]);

module.exports = Plotly;

Video for Plotly.js
https://www.youtube.com/watch?v=ZRiAWz-sVlM

READ MORE

What is Aurelia?

Aurelia is a JavaScript client framework for mobile, desktop and web leveraging simple conventions and empowering creativity.

Aurelia is a next generation UI framework. Whether you're building apps for the browser, mobile or desktop, Aurelia can enable you to not only create amazing UI, but do it in a way that is maintainable, testable and extensible.


Features:

  • Forward-thinking
  • Modern Architecture
  • Two-Way Databinding
  • Extensible HTML
  • Routing & UI Composition
  • MV* with Conventions
  • Broad Language Support
  • Testable


Some of  the main benefits

  • Clean and Unobtrusive 
  • Convention over Configuration 
  • Simple, But Not Simplistic 
  • Promotes the "-ilities" 
  • Amazingly Extensible
  • Web Standards Focused
  • Integrates Well with Others
  • TypeScript Support 
  • An Official Product with Commercial Support 
  • Thriving Community and Ecosystem 

Video for Aurelia 

https://www.youtube.com/watch?v=N855h5-OdZw

READ MORE

What is Meteor.js?

Meteor, or MeteorJS, is a free and open-source JavaScript web framework written using Node.js. Meteor allows for rapid prototyping and produces cross-platform (Android, iOS, Web) code. ... On the client, Meteor depends on jQuery and can be used with any JavaScript UI widget library.

Meteor.js is a cohesive development platform, a collection of libraries and packages that are bound together in a tidy way to make web development easier. It builds on ideas from previous frameworks and libraries to offer an easy way to start a prototype app, but it gives you the tools and flexibility to build a full fledged production app. There are libraries like Tracker and Blaze that the Meteor Development Group has built specifically for a reactive front-end experience.

Meteor.js is an open-source platform built on Node and MongoDB. It’s not just a framework, it’s more than that.

Is it comparable to Angular? Angular handles just the frontend parts of application. Meteor is more of a platform than Angular. It is both server and client-side code and handles a lot of the parts of applications that we need to create manually in Angular.

Video for Meteor.Js

https://www.youtube.com/watch?v=CSSdYbXqlxE​

READ MORE

What is Matter.Js?

Matter.js is a 2D physics engine for the web — see all demos → Rigid bodies. Compound bodies

A 2D rigid body physics engine for the web written in JavaScript.

Most common modules are

  • Engine
  • World
  • Body
  • Bodies
  • Composite
  • Composites
  • Constraint
  • MouseConstraint
  • Events
  • Plugin

Features:

  • Rigid bodies
  • Compound bodies
  • Composite bodies
  • Concave and convex hulls
  • Physical properties (mass, area, density etc.)
  • Restitution (elastic and inelastic collisions)
  • Collisions (broad-phase, mid-phase and narrow-phase)
  • Stable stacking and resting
  • Conservation of momentum
  • Friction and resistance
  • Events
  • Constraints
  • Gravity
  • Sleeping and static bodies
  • Rounded corners (chamfering)
  • Views (translate, zoom)
  • Collision queries (raycasting, region tests)
  • Time scaling (slow-mo, speed-up)
  • Canvas renderer (supports vectors and textures)
  • MatterTools for creating, testing and debugging worlds
  • World state serialisation (requires resurrect.js)
  • Cross-browser (Chrome, Firefox, Safari, IE8+)
  • Mobile-compatible (touch, responsive)
  • An original JavaScript physics implementation (not a port)

Bower Package

bower install matter-js
 

NPM Package

npm install matter-js

Video for Matter.Js

https://www.youtube.com/watch?v=7lfhsUNWIlA​

READ MORE

Promises in AngularJS are provided by the built-in $q service. They provide a way to execute asynchronous functions in series by registering them with a promise object.

A service that helps you run functions asynchronously, and use their return values (or exceptions) when they are done processing.

A new instance of deferred is constructed by calling $q.defer().

Methods:

  • Resolve(value)
  • Reject(reason)
  • Notify(notify)

A new promise instance is created when a deferred instance is created and can be retrieved by calling deferred.promise.

Methods:

  • then()
  • catch()
  • finally()


$q is integrated with the $rootScope.Scope Scope model observation mechanism in angular, which means faster propagation of resolution or rejection into your models and avoiding unnecessary browser repaints, which would result in flickering UI.

Example Code:

var deferred = $q.defer();
var promise = deferred.promise;
 
promise.then(function success(data) {
  console.log('Success!', data);
}, function error(msg) {
  console.error('Failure!', msg);
});
 
deferred.reject('We failed :(');

Video about Angular Services

https://www.youtube.com/watch?v=cdG_T6ufcbE​

READ MORE
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...