Skip to content

Commit c48c6b7

Browse files
committed
Animated background
1 parent 0f94274 commit c48c6b7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "w3champions",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"private": true,
55
"description": "Always stay up to date with this Launcher for the community Ladder Warcraft 3 Champions.",
66
"author": "Deespul LLC",

src/App.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
</div>
1717
</div>
1818
<div class="content-modal-wrapper">
19+
<video autoplay muted loop class="fullscreen-bg__video">
20+
<source src="~@/assets/images/home/Animated_Background-webm.webm" type="video/webm">
21+
</video>
1922
<div class="static-bg" ></div>
2023
<div class="content-modal">
2124
<router-view />
@@ -207,12 +210,11 @@ a {
207210
position: fixed;
208211
top: 50%;
209212
left: 50%;
210-
min-width: 100%;
211-
min-height: 100%;
212213
z-index: -100;
213214
transform: translateX(-50%) translateY(-50%);
214-
width: 100%;
215-
height: 100%;
215+
width: 95%;
216+
height: 95%;
217+
object-fit: fill;
216218
}
217219
218220
.static-bg {

vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = defineConfig({
5454
},
5555
configureWebpack: (config) => {
5656
config.module.rules = [...config.module.rules, {
57-
test: /\.(png|jpg|gif|svg|xcf|otf)$/i,
57+
test: /\.(png|jpg|gif|svg|xcf|otf|webm)$/i,
5858
loader: 'url-loader',
5959
options: {
6060
esModule: false,

0 commit comments

Comments
 (0)