mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
FEAT: � New <PixelBlast /> background
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Highlighted sidebar items
|
||||
export const NEW = ['Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst'];
|
||||
export const NEW = ['Pixel Blast', 'Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst'];
|
||||
export const UPDATED = [];
|
||||
|
||||
// Used for main sidebar navigation
|
||||
@@ -101,6 +101,7 @@ export const CATEGORIES = [
|
||||
'Prism',
|
||||
'Aurora',
|
||||
'Beams',
|
||||
'Pixel Blast',
|
||||
'Dark Veil',
|
||||
'Dither',
|
||||
'Gradient Blinds',
|
||||
|
||||
@@ -112,6 +112,7 @@ const backgrounds = {
|
||||
'prism': () => import('../demo/Backgrounds/PrismDemo.vue'),
|
||||
'gradient-blinds': () => import('../demo/Backgrounds/GradientBlindsDemo.vue'),
|
||||
'prismatic-burst': () => import('../demo/Backgrounds/PrismaticBurstDemo.vue'),
|
||||
'pixel-blast': () => import('../demo/Backgrounds/PixelBlastDemo.vue'),
|
||||
};
|
||||
|
||||
export const componentMap = {
|
||||
|
||||
35
src/constants/code/Backgrounds/pixelBlastCode.ts
Normal file
35
src/constants/code/Backgrounds/pixelBlastCode.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import code from '@content/Backgrounds/PixelBlast/PixelBlast.vue?raw';
|
||||
import { createCodeObject } from '../../../types/code';
|
||||
|
||||
export const pixelBlast = createCodeObject(code, 'Backgrounds/PixelBlast', {
|
||||
installation: `npm install three postprocessing`,
|
||||
usage: `// Component inspired by github.com/zavalit/bayer-dithering-webgl-demo
|
||||
|
||||
<template>
|
||||
<div style="width: 100%; height: 600px; position: relative">
|
||||
<PixelBlast
|
||||
variant="circle"
|
||||
:pixel-size="6"
|
||||
color="#A7EF9E"
|
||||
:pattern-scale="3"
|
||||
:pattern-density="1.2"
|
||||
:pixel-size-jitter="0.5"
|
||||
:enable-ripples="true"
|
||||
:ripple-speed="0.4"
|
||||
:ripple-thickness="0.12"
|
||||
:ripple-intensity-scale="1.5"
|
||||
:liquid="true"
|
||||
:liquid-strength="0.12"
|
||||
:liquid-radius="1.2"
|
||||
:liquid-wobble-speed="5"
|
||||
:speed="0.6"
|
||||
:edge-fade="0.25"
|
||||
:transparent="true"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import PixelBlast from './PixelBlast.vue'
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user