I AM LISTENING TO
|
WHAT I LIKE
  • en
  • de
BLOG FILTER

Code My UI provides handpicked code snippets,  you can use in your own web projects. You can find website design inspiration, plus some code samples.

Code My UI

readmore

Minimap provides a preview of a full webpage or its DOM element. All with flexible positioning and navigation support.

GitHub

readmore

It is an animation proxy: used as a wrapper of your chosen library, it may allow you to do more and better and it makes easy to switch from one library to another any time you want. Currently it can work together with GSAP, Velocity.js, Transit (CSS transitions) or jQuery.

  1. One to rule them all
  2. Timeline support for all
  3. Support for play(), pause(), resume(), reverse() and restart()
  4. To, From and FromTo tweens, loops and infinite loops, yoyo effect, delay and loops delay, callbacks and directional callbacks, full set of events

As a big velocity fan, Tweene provides some nice unique additional options and the timeline feature pushes things to new levels ;)

Tweene

readmore

URI.js is a javascript library for working with URLs. It offers a “jQuery-style” API (Fluent Interface, Method Chaining) to read and write all regular components and a number of convenience methods like .directory() and .authority().

URI.js offers simple, yet powerful ways of working with query string, has a number of URI-normalization functions and converts relative/absolute paths.”

GitHub

readmore

NavNav provides a ton of CSS, jQuery, and JavaScript responsive navigation examples, demos, and tutorials from all over the web.

NavNav

readmore

metisMenu offers a lot of options to tweak layout and usage. The plugin provides options for

  1. Vertical menus
  2. Folder Views
  3. Hover Menus

GitHub / WordPress Version

readmore

OPTION 1

Use the CSS font loading API. Not supported in all browsers yet (MDN, W3C). You can call document.fonts  to get a FontFaceSet object.

  • check(fontSpec) – returns whether all fonts in the given font list have been loaded and are available. The fontSpec uses the CSS shorthand syntax for fonts.
    Example: document.fonts.check('bold 16px Roboto'); // true or false
  • document.fonts.ready – returns a Promise indicating that font loading and layout operations are done.

OPTION 2

Use Font Face Observer – its a small @font-face loader and monitor compatible with any web font service. It will monitor when a web font is applied to the page and notify you. It does not limit you in any way in where, when, or how you load your web fonts. Unlike the Web Font Loader Font Face Observer uses scroll events to detect font loads efficiently and with minimum overhead.

GitHub

OPTION 3

Use jQuery-FontSpy.js, works by checking the change in width of a string.

GitHub

OPTION 4

Use Webfont Loader,  if loading fonts from Typekit , Fonts.com, Google, Fontdeck or custom location.

This introduces the following events:

  • loading – This event is triggered when all fonts have been requested.
  • active – This event is triggered when the fonts have rendered.
  • inactive – This event is triggered when the browser does not support linked fonts or if none of the fonts could be loaded.
  • fontloading – This event is triggered once for each font that’s loaded.
  • fontactive – This event is triggered once for each font that renders.
  • fontinactive – This event is triggered if the font can’t be loaded.

GitHub

Enjoy coding …

readmore

  • touch (mobile)
  • zooming
  • rotating
  • scaling (flipping)
  • multiple croppers
  • crop on a canvas
  • crop image in the browser by canvas
  • translate Exif Orientation information
  • Cross-browser support

Cropper.js / jQuery Version

readmore

  • inertia and snapping
  • multiple interactions
  • cross browser and device, supporting the desktop and mobile versions of Chrome, Firefox and Opera
  • interaction with SVG elements
  • being lightweight and standalone (not yet another jQuery plugin)
  • not modifying the DOM except to support IE8 and to change the cursor (but you can disable that)

GitHub

readmore

BackgroundCheck automatically switches to a darker or a lighter version of an element depending on the brightness of images behind it.

Pretty amazing and useful, when doing long  one-pagers with switching section backgrounds and navigation elements hovering above them.

BackgroundCheck

readmore