GithubHelp home page GithubHelp logo

getlib / circle.js Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 328 KB

A Free and Simple way for a 3D Gallery on your website. Transform a simple images list in a 3D gallery. No complex parameter, no javascript modification.

Home Page: https://circle3dgallery.com/

License: MIT License

JavaScript 98.51% CSS 1.49%
3d-gallery canvas javascript javascript-library 3d

circle.js's Introduction

Circle.js

A Free and Simple way for a 3D Gallery on your website.
Transform a simple images list in a 3D gallery. No complex parameter, no javascript modification.
Circle.js is based on THREE JS.

Démo

Example of a simple 3D gallery

Features

  • Transform picture blocks into 3D gallery
  • 100% responsive
  • Customizable background color
  • No GIF compatibilty

Browser support

Circle.js supports all last generation browsers : Chrome, Firefox, Edge.

Installation

CDN

Download from GitHub

You can also directly download Circle.js from GitHub.

Buy me a coffee

If this plugin is free, you can still support me by offering me a coffee ;)

Create your 3D Gallery

1) List your images

First of all create the images list. Create a div #circle3dImg and add all your images inside. You can place this block where you want, it will be hide. You need to specify the original width data-width and original height data-height of each image.

<div id="circle3dImg">
<img data-width="1200" data-height="900" src="gallerie/img1.webp" />
<img data-width="1200" data-height="900" src="gallerie/img2.png" />
<img data-width="1000" data-height="750" src="gallerie/img3.webp" />
<img data-width="800" data-height="600" src="gallerie/img4.webp" />
</div>

2) Add your 3D canvas

Then you will place your canvas block canvas #circle3dCanvas. Your 3D gallery will be print there. You can place it where you want in your page. Change the background-color with the data-background parameter.

<canvas id="circle3dCanvas" data-background="#fff"></canvas>

Then, define your canvas style. You can do what you want with this block. For responsive size, you just need to add !important after height and width.
Exemple :

#circle3dCanvas{height:40vw !important;width:90vw !important;}

3) Final Touch

Add the Circle .js and .css files at the end of your page.

<link rel="stylesheet" href="circle.css">
<script type="module" src="circle.min.js"></script>

That's it !

circle.js's People

Contributors

getlib avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.