Skip to content

Instantly share code, notes, and snippets.

import App from "@/js/App";
import PageLoader from "@/js/components/PageLoader";
import Component from "gia/Component";
import { sampleSize, shuffle } from "lodash";
import * as THREE from "three";
// import TWEEN from "three/addons/libs/tween.module.js";
import {
CSS3DRenderer,
CSS3DObject,
} from "three/addons/renderers/CSS3DRenderer.js";
@tristantbg
tristantbg / images.php
Created November 23, 2016 08:56 — forked from azharc/images.php
image srcset Kirby tag
<?php
// create srcset images for kirby
function img($image, $options = array()) {
// defaults
$defaults = array(
"alt" => $image->title()->or(''),
"widths" => [100, 100, 100],
"class" => "",
"lazy" => false,
);