Skip to content

Commit f0df366

Browse files
authored
Merge pull request #11 from 7PH/dev/grid-stacking
Use grid display to better stack elements (Fixes <p> stacking) & Fix text bold artefact
2 parents 890522b + a5e4411 commit f0df366

18 files changed

+168
-142
lines changed

dist/powerglitch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-src/src/components/ImagePreview.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const rebuild = () => {
1212
if (! container.value) {
1313
return;
1414
}
15-
console.log('rebuilding');
1615
PowerGlitch.glitch(container.value, appStore.powerGlitchOptions);
1716
};
1817

docs-src/src/components/OptionPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const appStore = useAppStore();
5454
v-model="appStore.powerGlitchOptions.timing.duration"
5555
class="mt-1"
5656
:title="'Loop duration (ms)'"
57-
:min="500"
58-
:max="10000"
57+
:min="150"
58+
:max="4000"
5959
:step="100"
6060
/>
6161
<ToggleGroupOption

docs-src/src/stores/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const useAppStore = defineStore('main', {
99
const htmlElements = {
1010
'image': `<img src="${defaultImage}" />`,
1111
'button': '<button>a button 🤷‍♀️</button>',
12+
'paragraph': '<p>Power Glitch 🌎</p>',
1213
};
1314

1415
return {
@@ -37,7 +38,7 @@ export const useAppStore = defineStore('main', {
3738

3839
const htmlElementKey = {
3940
'always': 'image',
40-
'hover': 'image',
41+
'hover': 'paragraph',
4142
'click': 'button',
4243
}[playMode];
4344
this.powerGlitchOptions.html = this.htmlElements[htmlElementKey];

docs-src/src/views/HomeView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ onMounted(() => {
5454
html: `<img src="${logo}" />`,
5555
playMode: 'hover',
5656
timing: {
57-
duration: 1500,
57+
duration: 2500,
5858
},
5959
glitchTimeSpan: {
6060
start: 0,
@@ -101,7 +101,7 @@ onMounted(() => {
101101
});
102102
PowerGlitch.glitch(glitchExample10.value, {
103103
html: `
104-
<div class="border border-2 rounded shadow">
104+
<div class="border border-2 border-gray-400 px-2 py-1 rounded-xl">
105105
<p>
106106
Power <b>Glitch</b> 🌎
107107
</p>

docs/api-docs/types/GlitchPartialOptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Type alias GlitchPartialOptions</h1></div>
1717
<div class="tsd-comment tsd-typography"><p>Options given to the glitch method</p>
1818
</div><aside class="tsd-sources">
1919
<ul>
20-
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/6c2e339/src/index.ts#L463">index.ts:463</a></li></ul></aside></div>
20+
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/a1a318a/src/index.ts#L480">index.ts:480</a></li></ul></aside></div>
2121
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
2222
<div class="tsd-navigation settings">
2323
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

docs/api-docs/types/GlitchResult.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h5>stop<wbr/>Glitch<span class="tsd-signature-symbol">: </span><span class="tsd
4444
</div>
4545
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div><aside class="tsd-sources">
4646
<ul>
47-
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/6c2e339/src/index.ts#L473">index.ts:473</a></li></ul></aside></div>
47+
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/a1a318a/src/index.ts#L490">index.ts:490</a></li></ul></aside></div>
4848
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
4949
<div class="tsd-navigation settings">
5050
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

docs/api-docs/types/GlitchableElement.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Type alias GlitchableElement</h1></div>
1717
<div class="tsd-comment tsd-typography"><p>Specifies what to glitch. Query selector, html element, list of html elements or NodeList.</p>
1818
</div><aside class="tsd-sources">
1919
<ul>
20-
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/6c2e339/src/index.ts#L468">index.ts:468</a></li></ul></aside></div>
20+
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/a1a318a/src/index.ts#L485">index.ts:485</a></li></ul></aside></div>
2121
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
2222
<div class="tsd-navigation settings">
2323
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

docs/api-docs/types/LayerDefinition.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h5>timing<span class="tsd-signature-symbol">: </span><span class="tsd-signature
2929
<h3>See</h3><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect#parameters">https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect#parameters</a></p>
3030
</div></li></ul></div><aside class="tsd-sources">
3131
<ul>
32-
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/6c2e339/src/index.ts#L130">index.ts:130</a></li></ul></aside></div>
32+
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/a1a318a/src/index.ts#L126">index.ts:126</a></li></ul></aside></div>
3333
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
3434
<div class="tsd-navigation settings">
3535
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

docs/api-docs/types/PlayModes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h3>Remarks</h3><ul>
2424
</ul>
2525
</div><aside class="tsd-sources">
2626
<ul>
27-
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/6c2e339/src/index.ts#L10">index.ts:10</a></li></ul></aside></div>
27+
<li>Defined in <a href="https://github.com/7PH/powerglitch/blob/a1a318a/src/index.ts#L9">index.ts:9</a></li></ul></aside></div>
2828
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
2929
<div class="tsd-navigation settings">
3030
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">

0 commit comments

Comments
 (0)