All Projects → zeixcom → Anzeixer

zeixcom / Anzeixer

Licence: MIT license
Toolkit to Streamline View Definitions for Responsive Web Design

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Anzeixer

breakpoints-js
Awesome Breakpoints in JavaScript. (bootstrap supported)
Stars: ✭ 70 (+12.9%)
Mutual labels:  responsive, breakpoints
mobx-react-matchmedia
A React HOC with mediaqueries for responsive layout
Stars: ✭ 32 (-48.39%)
Mutual labels:  responsive, breakpoints
breaking-point
BREAKING-POINT lets you quickly define and subscribe to screen (i.e. window) breakpoints in your re-frame application
Stars: ✭ 36 (-41.94%)
Mutual labels:  responsive, breakpoints
bootstrap-grid-ms
Missing grid range in Bootstrap 3, micro-small from 480-767px.
Stars: ✭ 34 (-45.16%)
Mutual labels:  responsive
react-context-responsive
A package that provides a responsive context to your application, using React Context API.
Stars: ✭ 25 (-59.68%)
Mutual labels:  responsive
fxp-jquery-sidebar
A responsive and fluid sidebar with jQuery and Hammer.js
Stars: ✭ 14 (-77.42%)
Mutual labels:  responsive
yourfolio
⭐ Super simple and responsive theme for your personal website on Hugo
Stars: ✭ 28 (-54.84%)
Mutual labels:  responsive
boardz
Create Pinterest-like boards with pure CSS, in less than 1kB.
Stars: ✭ 33 (-46.77%)
Mutual labels:  responsive
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (-16.13%)
Mutual labels:  responsive
flutter scale aware
🎗 Scale-based layouts with a bit more ease, powered by extensions.
Stars: ✭ 26 (-58.06%)
Mutual labels:  responsive
hyde-hyde
A cool theme inspired by spf13's Hyde theme
Stars: ✭ 234 (+277.42%)
Mutual labels:  responsive
neon
Neon is a modern VueJS design library built with Typescript and SASS
Stars: ✭ 19 (-69.35%)
Mutual labels:  responsive
hes-gallery
Light, dependency free, responsive gallery script
Stars: ✭ 27 (-56.45%)
Mutual labels:  responsive
nodebb-theme-oxide
Theme based on Github for NodeBB.
Stars: ✭ 23 (-62.9%)
Mutual labels:  responsive
priority-plus
A modern implementation of the priority plus navigation pattern.
Stars: ✭ 30 (-51.61%)
Mutual labels:  responsive
react-timeline
The easiest way to add a responsive and customizable timeline to React apps
Stars: ✭ 68 (+9.68%)
Mutual labels:  responsive
Binary-Calculator-JavaScript
📱 A handy Calculator for Binary operations, that works on all Devices 📱 💻 🖥 | ⛓ https://play.google.com/store/apps/details?id=com.binarycalculator.ayidouble.binarycalculator.app ⛓
Stars: ✭ 45 (-27.42%)
Mutual labels:  responsive
Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components — Standard size from Chrome DevTools.
Stars: ✭ 33 (-46.77%)
Mutual labels:  responsive
postcsslayouts
This is the repository for my course, Building a Responsive Single-Page Design with PostCSS on LinkedIn Learning and Lynda.com.
Stars: ✭ 22 (-64.52%)
Mutual labels:  responsive
iDocs
iDocs is one page documentation html template which helps you to create your offline and online documentation for your themes, templates, plugins and software.
Stars: ✭ 75 (+20.97%)
Mutual labels:  responsive

Anzeixer

Toolkit to Streamline View Definitions for Responsive Web Design

What Is Anzeixer?

Anzeixer is a set of CSS and JavaScript snippets that lets you define threshold values of views once, saving time and reducing errors.

How to Use Anzeixer?

Define Views in CSS with @media Rules

Define views that use media queries to apply CSS rules at specific breakpoints and give the views descriptive names. In addition to distinct views for different device widths, you can also create views for portrait and landscape orientations and for various pixel densities.

/**
 * Medium
 */
@media screen and (min-width: 768px) and (max-width: 999px) {

  body:after {
    content: 'm';
    background: #ffe6a0;
  }

}

@media screen and (min-width: 768px) and (max-width: 999px) and (orientation: portrait) {
  body:after { content: 'm portrait'; }
}

@media screen and (min-width: 768px) and (max-width: 999px) and (orientation: landscape) {
  body:after { content: 'm landscape'; }
}

Show the Current View During Development

During development, you need to know that the correct CSS rules are being applied and that the correct JavaScript is being run. Add the "dev" class to the <body> tag to enable an indicator at the bottom left corner which displays the name of the current view.

  <body class="dev">

Query the Current View with JavaScript

You probably need for certain user interface behavior to change depending on the view. For example, you might replace tabs with an accordion on very narrow screens. By using JavaScript to query the current view from CSS instead of defining the threshold values a second time in JavaScript, you reduce complexity and the likelihood of errors.

Anzeixer.getView();      // returns string -- CSS content property of body:after
Anzeixer.getSizeIndex(); // returns integer -- index of current view size

Anzeixer.isXSmall();     // returns boolean -- target smallest devices only (xs)
Anzeixer.isSmall();      // returns boolean -- target all small devices (xs and s)
Anzeixer.isMedium();     // returns boolean -- target medium devices only (m)
Anzeixer.isLarge();      // returns boolean -- target all large devices (l and xl)
Anzeixer.isXLarge();     // returns boolean -- target largest devices only (xl)

Anzeixer.isPortrait();   // returns boolean -- target portrait orientation
Anzeixer.isLandscape();  // returns boolean -- target landscape orientation

Improve Performance with Unified View Change Events

On pages with a lot of JavaScript, having each script listen for the browser's "resize" events individually can impose a significant performance penalty. Many scripts don't need to know the specific viewport size, only which view is in use. Anzeixer can help by triggering a "viewchange" event only when a breakpoint threshold is crossed, letting your scripts ignore "resize" events they don't need.

/**
 * listen to viewchange event
 */
document.addEventListener('viewchange', function(e){
  console.log(e.detail.originalView + ' -> ' + e.detail.currentView);
}, false);

Who's behind Anzeixer?

Anzeixer is being developed by Zeix's user interface development team.

Anzeixer may be freely used under the MIT license.

Contact: Esther Brunner [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].