4questions
hi i recently thought of making a canvas without having access to html so just css and no js of course
1-lets say the whole page doesnt have canvas and div and button and p so can i use ::after/before and change it to canvas or any other ways that make another element live div canvas
2-just create canvas from nothing
3-another question is about making the actual site by css html and js I realised recently that i need to learn php and i thing other stuff too i was wondering is it possible that i do js and html and css but the rest would be on someone elses hand and if i look for a partnership like this what would i call myself ?am i frontend? and need a backend?
4-im using
@property --deggg{
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
} and all of my html changed its color like it works tho its has a different color than it use to have now(it works perfectly but i want the old color and with
@property --deggg{
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
i cant have that so it there sth wrong with this property or do i need to do sth else?
11 Replies
no one knew or no one undrestood??
1. Not sure what you mean by canvas; do you want a <canvas> tag? If so , you’ll need to put it in the html or inject with JavaScript , you can’t make a pseudo element into any tag you want it to be.
3. Html , css, and JavaScript is front-end
4. That property by itself wouldn’t change a colour , where are you using it? Maybe in a linear gradient or something like that it could change the angle of your gradient or using it in something like an hsl? You’d have to demonstrate how this property is being used to affect your colour for anyone to answer the question.
You could make a canvas element via HTML, but you can't draw on it without JS. What is the purpose of a canvas that you can't draw on?
Most of what you wrote is completely incomprehensible.
for example in discord u cant add html js just css so wanted a canvas so the only soloution is adding by css which is a no as you guys said
and the purpose is that i want an animation on it 🥲 like a mad man for beauty
thanks a ton
yea I know its been my problem
with 4 i mean this
without property
with property
u see how the colors change with property like everything is dead and i got no idea why
but It WORKS
Gist
vs code being funny for @property
vs code being funny for @property. GitHub Gist: instantly share code, notes, and snippets.
full code
and its updated vscode 1.94
Sometimes in text editors newer properties and functions get flagged as unsupported so to the editor it looks like there’s an error which will change the syntax highlighting of everything below it. @property is fairly new so that may be the problem. I have no idea how to adjust your theme colour on your text editor if it’s flagging . You could comment out the declaration while you’re developing so you can get the theme colour you desire and then uncomment it when you need it
Or put it into its own css file
And make sure your linter is updated
ok tnx 🥲
if u could tell me where is not undrestandable i would appreciate it so i fix it! for other talks