556 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
50
views
Format code (HTML) with Codepen Prefill Post
Using CodePen "POST to Prefill Editor". Everything works fine except for the fact the HTML is not formatted. Difficult to send formatting in a POST so wondered if there's a parameter that I ...
0
votes
1
answer
114
views
CSS Gradient Animation Not Working in Svelte Component
I'm working on a Svelte component where I want to create a shiny call-to-action button with gradient animations. The button should have a combination of linear and conic gradients that animate over ...
0
votes
1
answer
68
views
How to add js/css style to svelte-kit project
I have a js effect called color changin in codepen and i dont how implement it into my svelte-kit project like I tried to implementing this directly into app.css and app.html but it didn't work I dont ...
0
votes
1
answer
171
views
Three.js on CodePen with PLYLoader
I am preparing a CodePen for a question about Three.js's PLYLoader. Unfortunately I cannot get the CodePen working, no matter how I include Three.js I keep geting the error "Three is not defined&...
0
votes
1
answer
155
views
Embedding a codepen in a (MDSVEX) markdown page in Sveltekit
I have a site that uses Sveltekit and MDSVEX to convert markdown documents (+page.md) into web pages and embed them in a section's template. In my "Lab" section, I list all of my experiments ...
1
vote
0
answers
56
views
ThreeJs codepen to React component
I've been trying to move this codepen.io to a react component, this what I did:
React Custom Hook
import { useEffect, useRef } from 'react';
import * as THREE from 'three';
import { createNoise4D } ...
0
votes
0
answers
201
views
I'm getting a 404 error from codepen when I execute my javascript code
Why does codepen thrown an error when I try to run this javascript?
It doesn't throw there error unless I get into the last else statement.
https://codepen.io/bnjwin/pen/YzbQOzo
else {
let ...
0
votes
1
answer
37
views
How to remove this unwanted table cell horizontal padding on Safari?
I'm using a table: https://codepen.io/Offirmo/full/rNgjdEb
Chrome and Firefox don't pad the cells horizontally
Safari does, making the table appear larger
I've googled it, added margin+padding: 0, ...
1
vote
1
answer
2k
views
How to use tailwindcss's @apply and others in codepen
Is it possible, and if so how, to use things like @apply and extend tailwind components in a codepen ? For example doing something like:
.button {
@apply rounded-4 border-2 border-blue-500;
}
I ...
1
vote
0
answers
120
views
Multiple Elementor HTML/CSS Sections Work on Editor but not on Live Site
I am using the latest version of Elementor Pro, Qwery theme. (Complete begginer in HTML/CSS and also not a native English speaker).
I am taking code from Codenpen (flip cards, etc) and putting it in ...
-1
votes
1
answer
47
views
Why does mixing types work and not give an error?
I have created a string and passed it to a number-only function and it works. What I am doing wrong? I was expecting an error.
let number: string = 4;
function sum (num: number) {
console.log(num)
}...
0
votes
1
answer
79
views
Javascript in Codepen works on desktop not on mobile
Using Codepen.
When the form submit button is pressed, JavaScript instructs my 'result' div to become visible (by removing the 'hidden' attribute):
const form = document.getElementById("form")
...
0
votes
0
answers
74
views
How can I do this? (Calendar search, find, match then edit)
I am trying to code a calendar, which has been done using a table, it displays sun-sat live to the current date. This part is working, complete, and I have no need to change it greatly. The issue lies ...
0
votes
0
answers
75
views
i want codepen to angular component for this template
i want to use this in angular component i tried alot of diffeent method already but got confused even more someone give simple solution please.
var app = function () {
var body = ...
0
votes
0
answers
33
views
JavaScript removeChild Method Not Working?
I am trying to build a "choose your own adventure"-type text adventure site using JavaScript for choice selection based on this Youtube tutorial and I'm running into an issue where the "...