cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <figure id="multiSlide" class="multiSlide"></figure>
<nav id="multiSlideNav" class="multiSlideNav">
  <a href="#" id="top" class="navButton"><</a>
  <a href="#" id="bottom" class="navButton">></a>
  <a href="#" id="left" class="navButton"><</a>
  <a href="#" id="right" class="navButton">></a>
              body {
    background: #696969;
    font-family:  'comic sans ms', Helvetica,  arial,  sans-serif;

.multiSlide {
    width: 470px;
    height: 470px;
    position: relative;
    margin: 100px auto 0;
    overflow: hidden;
    -webkit-perspective: 300px;
.box {
    background: #fff;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 140px;
    height: 140px;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5),inset 0 -1px 2px 0 rgba(0,0,0,0.3);
    -webkit-transition: all 500ms cubic-bezier(0.7,-0.9,0.3,1.4);
    -moz-transition: all 500ms cubic-bezier(0.7,-0.9,0.3,1.4);
    transition: all 500ms cubic-bezier(0.7,-0.9,0.3,1.4);
    opacity: 1;
    -webkit-transform: rotateX(30deg);
    -webkit-transform-origin: center bottom;
    opacity: 0.8;
    -webkit-transform: rotateX(-30deg);
    -webkit-transform-origin: center top;
    opacity: 0.8;
    -webkit-transform: rotateY(-30deg);
    -webkit-transform-origin: right center;
    opacity: 0.8;
    -webkit-transform: rotateY(30deg);
    -webkit-transform-origin: left center;
    opacity: 0.8;
    opacity: 0;
.box img {
    width: 140px;
    height: 140px;

.multiSlideNav {
    width: 470px;
    height: 470px;
    position: absolute;
    left: 50%;
    top: 100px;
    margin: 0 0 0 -235px;
.navButton {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #444;
    border-radius: 100%;
    left: 50%;
    top: 50%;
    text-decoration: none;
    line-height: 27px;
    text-align: center;
    color: #888;
    font-size: 22px;
    font-weight: bold;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    transition: all 300ms ease;
.navButton:hover {
    background: #5f5f5f;
.navButton#top {
    -webkit-transform: rotateZ(90deg);
    -moz-transform: rotateZ(90deg);
    -transform: rotateZ(90deg);
    margin: -215px 0 0 -15px;
.navButton#bottom {
    -webkit-transform: rotateZ(90deg);
    -moz-transform: rotateZ(90deg);
    -transform: rotateZ(90deg);
    margin: 185px 0 0 -15px;
.navButton#left {
    margin: -15px 0 0 -215px;
.navButton#right {
    margin: -15px 0 0 185px;
    figure = document.getElementById('multiSlide');
    topButton       = document.getElementById('top');
    bottomButton    = document.getElementById('bottom');
    leftButton      = document.getElementById('left');
    rightButton     = document.getElementById('right'); 
    new Box(-2,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(-1,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(0,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(1,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(3,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(4,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(5,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,-2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,-1,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,0,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,1,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,2,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,3,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,4,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    new Box(2,5,'https://www.technotoday.com.tr/Post/PostDosyalar/image/Haber/2689.jpg');
    topButton.addEventListener('click', function(){
    bottomButton.addEventListener('click', function(){
    leftButton.addEventListener('click', function(){
    rightButton.addEventListener('click', function(){

var unit            = 160;
var registeredBoxes = [];
var slidePosX       = 0;
var slidePosY       = 0;
var Box = function(posX,posY,img){
    this.pos    = {};
    this.pos.X  = posX;
    this.pos.Y  = posY;
    this.img    = img;
Box.prototype = {
    init : function(){
        this.DOMElement             = document.createElement('div');
        this.DOMElement.className   = 'box';
        this.DOMElement.style.left  = (this.pos.X*unit)-unit+'px';
        this.DOMElement.style.top   = (this.pos.Y*unit)-unit+'px';
        var img = document.createElement('img');
        img.src = this.img;
    setPosition : function(axis,val){
        this.pos[axis] = val;
        if(axis == 'X'){
            this.DOMElement.style.left  = (this.pos[axis]*unit)-unit+'px';
        }else if(axis == 'Y'){
            this.DOMElement.style.top   = (this.pos[axis]*unit)-unit+'px';

function slide(axis,dir){
    var len = registeredBoxes.length;
    if(axis == 'Y'){
        for(var i=0; i<len; i++){
        slidePosY = slidePosY+dir;
    }else if(axis == 'X'){
        for(var i=0; i<len; i++){
        slidePosX = slidePosX+dir;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................