From 19eced932a9050fa7d951b4f0af1bf4b8e5f16aa Mon Sep 17 00:00:00 2001 From: Russell Samora Date: Tue, 28 May 2024 08:44:41 -0400 Subject: [PATCH] update readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 315c02a..8b02bf1 100644 --- a/README.md +++ b/README.md @@ -194,3 +194,19 @@ import example from "$utils/example.js"; * `translate.js`: Convenience function for transform translate css. * `urlParams.js`: Get and set url parameters. +## Tips + +### Image asset paths +For `img` tags, use relative paths: + +```html +cat +``` + +For CSS background images, use absolute paths: + +```css +background: url("/assets/demo/test.jpg"); +``` + +View example code in the preloaded demo.