Skip to content

lume/lume.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Create rich 2D or 3D graphical experiences more easily using HTML.

Home  ·  Documentation  ·  Examples  ·  Forum  ·  Chat  ·  Source

LUME gives you general-purpose HTML Elements for defining 2D or 3D scenes rendered with CSS3D, WebGL, or both mixed together.

LUME's allows us to combine traditional HTML elements styled with CSS with new elements that render with WebGL, which means we can render both traditional HTML content and 3D models together in the same 3D space, with lighting and shadow effects on both types of content.

As an example, consider traditional CSS box-shadow which is flat and static:

With LUME we can give traditional HTML content real and dynamic shadow and lighting! The following demo shows traditional <button> elements decorated with LUME elements to give them WebGL-powered lighting and shadow.

LUME is built on Web Component standards, making it possible to write 3D scenes declaratively using custom HTML elements, regardless of which view layer you prefer. This makes it possible for you write 3D scenes using popular HTML frameworks like (but not limited to) React, Vue.js, Meteor, Angular, Ember.js, or even the great jQuery.

<script> new Vue({ el: '#traditional', template: '', data: { code: stripIndent(` <style> body, html { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; font-family: sans-serif; background: #62b997; } div { width: 100px; height: 100px; box-shadow: 10px 10px 10px rgba(0,0,0,0.3); background: skyblue; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } <\/style>

static

`) }, }) new Vue({ el: '#dynamic', template: '', data: { code: buttonsWithShadowExample }, }) </script>

About

Repo for the static docs site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy