r/HTML • • 3h ago

CRIADOR DE SLIDES AUTOCONTIDOS COM HTML, CSS E JAVASCRIPT

0 Upvotes

Crie uma apresentação HTML completa, sofisticada e interativa com base no material-fonte fornecido ao final deste prompt.

A apresentação deve ser entregue como um único arquivo HTML autocontido, capaz de ser executado diretamente em um navegador moderno, sem necessidade de servidor, processo de compilação, instalação ou dependências externas.

Requisitos fundamentais

  • Crie uma apresentação em formato de slides sobre o tema identificado no material fornecido.
  • Utilize um único arquivo HTML contendo:

    • Estrutura HTML semântica;
    • CSS incorporado dentro de uma tag <style>;
    • JavaScript incorporado dentro de uma tag <script>;
    • Gráficos, ilustrações e elementos visuais criados com SVG incorporado ou CSS.
  • Não utilize bibliotecas, frameworks, fontes, imagens, scripts, folhas de estilo, CDNs ou APIs externas.
  • Não faça referência a arquivos externos.
  • O resultado deve funcionar simplesmente salvando o conteúdo como apresentacao.html e abrindo-o em um navegador.
  • Não forneça explicações antes ou depois do código HTML.
  • Retorne somente o código HTML completo e funcional.

Análise do conteúdo e estrutura narrativa

Antes de criar a apresentação, analise cuidadosamente o material fornecido. Identifique:

  • A mensagem central;
  • Os principais argumentos e ideias;
  • Conceitos e definições importantes;
  • Exemplos relevantes;
  • Relações entre os conceitos;
  • Números, comparações ou tendências;
  • Problemas, oportunidades e conclusões;
  • A sequência narrativa mais eficaz para apresentar o tema.

Transforme o material em uma apresentação coerente, e não apenas em uma cópia ou resumo do conteúdo original.

Organize a apresentação como uma história clara, sempre que o conteúdo permitir:

  1. Slide inicial com um título forte e um conceito visual marcante;
  2. Contexto e explicação sobre a importância do tema;
  3. Apresentação das principais ideias, conceitos ou estruturas;
  4. Evidências, exemplos ou dados de apoio;
  5. Contrastes, comparações ou relações de causa e efeito;
  6. Implicações práticas, aplicações ou recomendações;
  7. Principais aprendizados;
  8. Slide final com uma conclusão memorável.

A quantidade de slides deve ser proporcional à complexidade e ao volume do material-fonte. Não crie slides desnecessários. Cada slide deve comunicar uma ideia principal.

Design visual

Utilize uma identidade visual moderna, sofisticada e consistente, baseada em um tema escuro.

O design deve incluir:

  • Fundo escuro com textos de alto contraste;
  • Paleta de cores coerente e limitada;
  • Uma cor principal de destaque e, quando necessário, cores secundárias;
  • Hierarquia tipográfica clara;
  • Títulos grandes e legíveis;
  • Textos concisos;
  • Espaçamento generoso;
  • Ritmo visual consistente;
  • Margens, alinhamentos e grades bem estruturados;
  • Composições em camadas quando forem apropriadas;
  • Cartões, painéis, linhas do tempo, diagramas, grades e chamadas visuais quando melhorarem a compreensão;
  • Bordas, sombras, brilhos ou superfícies translúcidas de maneira sutil e funcional;
  • Consistência visual entre todos os slides.

Evite:

  • Modelos genéricos;
  • Excesso de texto;
  • Parágrafos longos e densos;
  • Elementos decorativos aleatórios;
  • Cores inconsistentes;
  • Textos com baixo contraste;
  • Animações excessivas;
  • Poluição visual;
  • Repetição do mesmo layout em todos os slides.

A apresentação deve parecer intencionalmente projetada, editorial, profissional, dinâmica e visualmente interessante.

Gráficos e elementos visuais

Quando o material contiver números, comparações, processos ou relações entre conceitos, represente essas informações visualmente por meio de:

  • Gráficos em SVG incorporado;
  • Diagramas criados com CSS;
  • Linhas do tempo;
  • Indicadores de progresso;
  • Gráficos de barras;
  • Gráficos radiais ou de rosca;
  • Matrizes;
  • Fluxogramas;
  • Comparações entre cenários;
  • Métricas em destaque;
  • Mapas de relacionamento.

Utilize somente dados presentes explicitamente no material-fonte. Não invente fatos, estatísticas, fontes ou citações.

Quando não houver dados exatos, utilize diagramas conceituais em vez de criar números fictícios.

Os gráficos e diagramas devem apresentar animações sutis quando entrarem na tela ou quando forem revelados progressivamente.

Interatividade e animações

Faça com que a apresentação seja interativa, fluida e visualmente envolvente.

Inclua:

  • Transições suaves entre os slides;
  • Animações de entrada para títulos, cartões, gráficos e diagramas;
  • Revelação progressiva de conteúdos;
  • Contadores animados somente quando baseados em dados numéricos reais;
  • Animações de desenho de SVG ou crescimento de barras quando apropriado;
  • Estados visuais para interação com o mouse;
  • Controles de navegação clicáveis;
  • Rolagem suave entre os slides;
  • Comportamento de rolagem com scroll-snap, para que cada slide se alinhe corretamente à janela;
  • Barra de progresso indicando a posição atual;
  • Pontos de navegação representando todos os slides;
  • Contador visível de slides;
  • Painel compacto com os atalhos do teclado.

As animações devem apoiar a narrativa e não distrair o usuário.

Utilize animações e transições CSS ou JavaScript puro. Não use bibliotecas de animação.

Implemente uma alternativa adequada para usuários que tenham ativada a preferência do sistema operacional por redução de movimento, utilizando prefers-reduced-motion.

Navegação e controles do teclado

Implemente uma navegação confiável usando JavaScript puro.

Controles obrigatórios:

  • Seta para a direita, seta para baixo ou barra de espaço: avançar para a próxima revelação ou para o próximo slide;
  • Seta para a esquerda ou seta para cima: voltar para a revelação anterior ou para o slide anterior;
  • Tecla Home: ir para o primeiro slide;
  • Tecla End: ir para o último slide;
  • Tecla Escape: fechar sobreposições ou o painel de ajuda;
  • Tecla H ou ?: exibir ou ocultar o painel de atalhos do teclado.

A barra de espaço deve primeiro revelar os elementos progressivos do slide atual. Somente depois que todos os elementos progressivos daquele slide forem revelados, a barra de espaço deve avançar para o slide seguinte.

A navegação para trás deve respeitar a mesma lógica: primeiro reverter as revelações progressivas do slide atual e, somente depois, voltar para o slide anterior.

Também ofereça suporte a:

  • Navegação por meio da roda do mouse, quando apropriado;
  • Navegação por toque e gestos de arrastar em dispositivos móveis;
  • Clique nos pontos de navegação;
  • Botões de avançar e voltar;
  • Navegação direta por controles acessíveis.

Impeça que o uso do teclado destinado à apresentação provoque uma rolagem acidental da página.

Comportamento dos slides

Cada slide deve:

  • Ocupar aproximadamente toda a área visível da tela;
  • Utilizar rolagem com scroll-snap;
  • Possuir um identificador exclusivo;
  • Ser acessível por meio dos pontos de navegação;
  • Adaptar-se a diferentes tamanhos de tela;
  • Manter uma hierarquia visual clara;
  • Evitar que conteúdos sejam cortados em telas menores.

Os slides podem conter elementos de revelação progressiva. Utilize uma classe ou um atributo data-* para identificar claramente esses elementos.

As revelações progressivas devem ocorrer em uma ordem deliberada, por exemplo:

  1. Título;
  2. Elemento visual principal;
  3. Explicação de apoio;
  4. Evidência ou detalhe;
  5. Conclusão principal.

O estado atual das revelações deve atualizar corretamente a interface.

Responsividade

A apresentação deve funcionar adequadamente em:

  • Navegadores de computadores;
  • Notebooks;
  • Tablets;
  • Telefones celulares;
  • Telas ultrawide;
  • Telas com pouca altura.

Utilize CSS responsivo, layouts flexíveis, dimensionamento relativo e media queries.

Em telas menores:

  • Reorganize layouts com várias colunas em uma única coluna;
  • Mantenha os textos legíveis;
  • Evite rolagem horizontal;
  • Mantenha os controles fáceis de utilizar;
  • Garanta que gráficos e diagramas continuem compreensíveis;
  • Não coloque informações essenciais somente em elementos que dependam de passar o mouse.

Acessibilidade

Implemente boas práticas de acessibilidade:

  • Utilize elementos HTML semânticos;
  • Use uma hierarquia adequada de títulos;
  • Inclua atributos aria-label apropriados;
  • Garanta contraste suficiente entre texto e fundo;
  • Torne todos os elementos interativos acessíveis pelo teclado;
  • Crie estados de foco visíveis;
  • Marque elementos SVG decorativos adequadamente;
  • Inclua textos alternativos descritivos para elementos visuais relevantes;
  • Utilize uma região aria-live para anunciar mudanças de slide quando apropriado;
  • Ofereça suporte à redução de movimento;
  • Não dependa apenas das cores para transmitir significado.

Implementação técnica

Utilize código limpo, organizado, eficiente e fácil de manter.

O HTML deve incluir:

  • Um contêiner principal para a apresentação;
  • Uma seção para cada slide;
  • Uma camada de controles de apresentação fixa ou discreta;
  • Barra de progresso;
  • Pontos de navegação;
  • Contador de slides;
  • Botões de avançar e voltar;
  • Painel de atalhos do teclado;
  • Indicador opcional do estado da apresentação;
  • Um pequeno rótulo de fonte ou de referência somente se essa informação estiver presente no material fornecido.

Utilize variáveis CSS personalizadas para definir o sistema visual, incluindo:

  • Cores de fundo;
  • Cores dos textos;
  • Cores de destaque;
  • Espaçamentos;
  • Raios das bordas;
  • Sombras;
  • Duração das transições;
  • Escala tipográfica.

Utilize JavaScript puro para:

  • Detectar o slide ativo;
  • Atualizar a barra de progresso;
  • Atualizar os pontos de navegação;
  • Atualizar o contador de slides;
  • Gerenciar as revelações progressivas;
  • Controlar a navegação pelo teclado;
  • Controlar botões, pontos, roda do mouse e gestos de toque;
  • Acionar animações;
  • Gerenciar estados de acessibilidade;
  • Abrir e fechar o painel de ajuda.

Utilize IntersectionObserver quando for útil para detectar o slide ativo e acionar efeitos visuais.

A implementação não deve gerar erros no console do navegador.

Controle de qualidade

Antes de retornar o HTML final:

  • Verifique se todos os slides podem ser acessados;
  • Verifique se os controles do teclado funcionam;
  • Verifique se a barra de espaço realiza as revelações progressivas;
  • Verifique se a navegação reversa funciona corretamente;
  • Verifique se a barra de progresso e os pontos estão sincronizados;
  • Verifique se o layout é responsivo;
  • Verifique se não existem dependências externas;
  • Verifique se nenhum dado foi inventado;
  • Verifique se todo o conteúdo provém do material fornecido ou é razoavelmente derivado dele;
  • Verifique se a apresentação continua compreensível sem animações;
  • Verifique se a resposta final contém apenas HTML válido e completo.

Material-fonte

Utilize o documento ou texto abaixo como a única fonte da apresentação:

[ANEXE UM DOCUMENTO OU COLE O TEXTO-FONTE AQUI. ANALISE O CONTEÚDO, EXTRAIA AS IDEIAS MAIS IMPORTANTES E TRANSFORME-O EM UMA APRESENTAÇÃO HTML ÚNICA, INTERATIVA, DINÂMICA, RESPONSIVA E VISUALMENTE SOFISTICADA.]


r/HTML • • 1d ago

Question SVG Tutorial - Learn how to code images in HTML with SVG

Thumbnail
svg-tutorial.com
3 Upvotes

I have been working on this tutorial, but it doesn't include how to create a svg from a map or from a pre-drawn picture, or a photo. I am looking for how to do those things. I can't find a tutorial that does that. Know of any?


r/HTML • • 1d ago

div messing with DOM?

Thumbnail
gallery
4 Upvotes

Why is the div messing with the DOM so much and creating a copy of its parent tag? Is this expected behaviour?

Hello all, trying to build a dropdown menu, the button to open it only appears when the screen is narrow. But I am not asking for help with that specifically, I am trying to put a div in a anchor that is a flex element, and weird things are happening in the DOM. I have checked, double checked, and ran the code through multiple tools. as far as I can tell the html is correct, but the DOM is all weird.

As you can see in the code div.dropdown-content is a element inside of a#ham_menu, but when chrome has loaded it div.dropdown-content is outside of a#ham_menu and a copy of a#ham_menu is inside of div.dropdown-content. Is this expected for some reason? if this is some weird flex behavior, I would appreciate some suggestions of how to get around or avoid it.

Here is a link to my github. https://github.com/wisnoskij/sglondon_website
Here is my github page: https://wisnoskij.github.io/sglondon_website/


r/HTML • • 1d ago

I created a npm package to convert 2d html to 3d elements

2 Upvotes

Using only css, no threeJS or webGL, no DOM edit/manipulation. Wrap your existing html and have a 3d element.

Would love some Feedbacks and suggestions

Here is the github repo: https://github.com/Prashaxt/brickbox

Please do check it out.


r/HTML • • 2d ago

My first website using JavaScript

Post image
50 Upvotes
 {
    font-family: "Digital7Mono";
    src: url("font/Digital7Mono-Yz9J4.ttf");
}
 {
    font-family: "OrbitronBlack";
    src: url("font/OrbitronBlack-n6dV.ttf");
}



body{
    background: linear-gradient(to bottom right, rgb(222, 255, 10), rgb(255, 8, 8));
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40em;
    margin: 0;
}



.name{
    display: flex;
    color: #fafafa;
    flex-direction: column;
    line-height: 0;
    font-size: 75%;
    h1{
        font-family: "OrbitronBlack", sans-serif;
        text-transform: uppercase;
        margin-bottom: 1;
    }
    .model{
        margin-bottom: 0;
    }
    p{
        color: #ededed;
        font-family: "Digital7Mono", sans-serif;
    }
}




.calculator{
    background-color: #222;
    padding: 25px;
    clip-path: inset(0 round 20px);
    width: 260px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


#output{
    cursor: auto;
    width: 100%;
    height: 50px;
    text-align: right;
    margin-bottom: 20px;
    padding: 45px 13px 45px 13px;
    box-sizing: border-box;
    border: none;
    border-radius: 6px;
    background-color: #a6fcd7;
    color: #1a1a1a;
    font-family: "Digital7Mono", sans-serif;
    font-size: 4rem;
}



/* buttons */
.button{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}


button{
    height: 50px;
    width: 55px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    margin-bottom: 2px;
    background-color: #818181;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 28px;
    color: #fafafa;
}


button:hover{
    background-color: rgb(126, 126, 126)181;
}


.operator{
    background-color: #424242;
}


.clear{
    background-color: #ffa600;
}
.equals{
    background-color: green;
    grid-column: span 2;
    width: auto;
}



.secret{
    background-color: #222;
    cursor: auto;
}

<!DOCTYPE html>
<html>
<head>
    <title>Calculator</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="calculator">
    <div class="name">
    <h1>CaseOh</h1>
    <p class="model">AC-2000XM16</p>
    <p>Made by Brnt</p>
    </div> 
    
    <input type="text" id="output" readonly placeholder="0">
<div class="button">
    <button class="clear" onclick="clearDisplay()" ondblclick="window.alert('OFF')">C</button>
    <button onclick="val('.')">.</button>
    <button class="operator" onclick="val('/')">÷</button>
    <button class="operator" onclick="val('*')">x</button>
    
    <button onclick="val('7')">7</button>
    <button onclick="val('8')">8</button>
    <button onclick="val('9')">9</button>
    <button class="operator" onclick="val('-')">-</button>


    <button onclick="val('4')">4</button>
    <button onclick="val('5')">5</button>
    <button onclick="val('6')">6</button>
    <button class="operator" onclick="val('+')">+</button>


    <button onclick="val('1')">1</button>
    <button onclick="val('2')">2</button>
    <button onclick="val('3')">3</button>
    <button class="operator" onclick="val('**')">^</button>
    


    <button onclick="val('0')">0</button>
    <button class="equals" onclick="calc()">=</button>
    <a class="secret" href="https://youtu.be/IwW0GJWKH98?si=gRmtPd6sirYnXHoM" target="_blank"></a>
</div>
<script src="script.js" ></script>
</div>
</body>
</html>

const output = document.getElementById("output");


function val(value) {
  output.value += value;
}


function clearDisplay() {
  output.value = '';
}


function calc(){
  output.value = new Function('return ' + output.value)();
}

r/HTML • • 3d ago

I just create website, any idea on what should I do to increase website safety?

Thumbnail
alfarisk-resources.com
0 Upvotes

r/HTML • • 4d ago

Week 1 of learning in public as a CS student: Building my first page with HTML & CSS (and finally understanding Flexbox)

9 Upvotes

Hey everyone! I'm a Computer Science student starting a "learn in public" habit to document my progress outside of regular classwork.

This week I focused on HTML and CSS fundamentals—structuring semantic tags properly and building a simple responsive layout from scratch. The biggest "aha!" moment for me was finally getting CSS Flexbox (justify-content vs. align-items) to click after spending way too long trying to center a simple card element.

Next week I'm planning to build a clean personal portfolio page to practice CSS Grid and responsive media queries.

For those who have been doing web dev for a while: what is one CSS trick or habit you wish you had learned during your very first week?


r/HTML • • 4d ago

Question How can I remove/hide this banner with developer tools as a reader?

Thumbnail
gallery
3 Upvotes

It's blocking the text of the blog. After I hided related elements, the white board is still there.

Link to the blog: https://lacyestelle.com/how-to-know-when-its-time-to-renovate-your-kitchen/


r/HTML • • 4d ago

How can I download or copy the code of a website and open it on another computer?

0 Upvotes

I've been trying to open websites as files on another computer to get around restrictions. I've tried copying the code, source, and downloading the website onto a flash drive but I haven't been able to get the website to actually function. Anyone have an explanation for this?


r/HTML • • 5d ago

Images and links to other pages in my site do not work

6 Upvotes

I have a folder with my html docs and a subfolder for images. I coded everything right with the right names and everything is perfect on my device but on another device I unzip the file and press the html doc for home and images and links to other pages do not work and I can't find why. This is a school assignment. For example the background image is called "bg" and it's in the images folder so "<style>

body {

background-image: url('images/bg.jpg');

background-repeat: no-repeat;

background-position: center;

background-size: cover;

}

</style>" and it never shows on other devices but on the device I'm coding on it shows. same for everything else.


r/HTML • • 5d ago Bravo

Colors won't render on desktop (VS Code / Phoenix Code) at all, but work perfectly on mobile. Any ideas?

Post image
11 Upvotes

Hi everyone! I recently started learning HTML and I've run into a bizarre issue that has completely stalled me. ​When I try to add colors, they just won't show up anywhere—neither in Live Preview nor in any desktop browser. All other elements (headings, paragraphs, tables, images, videos) load instantly, but color styles are completely ignored. Here is what I’ve tried so far: Writing styles inside the style attribute. ​Using the style tag (<style>). Creating a separate style.css file and linking it. Switching from VS Code to Phoenix Code (same exact issue). Deleting and rewriting the code from scratch, trying different approaches, and even changing the editor's color theme. The strangest part is that when I open the exact same code on my tablet using Spock editor, it applies the colors with zero issues! But on my PC, nothing works. Has anyone encountered this before or know what might be causing desktop environments to strip or ignore color properties? Any help would be greatly appreciated!

Update: The issue is finally solved! ​It turns out the problem wasn't with my HTML/CSS code or VS Code, but rather that my Windows operating system was stuck in High Contrast Mode / Dark Mode settings, which completely overrode and blocked web page styles. Once I disabled it, all the colors immediately appeared.


r/HTML • • 5d ago

Question Wikipedia style gallery

4 Upvotes

Hello, I'm new to HTML and CSS, I would like to replicate the wiki-style gallery at the bottom of a section when showcasing relevant images/info grouped together, but I have not figured it out yet.

Here's an example of what I'm talking about: https://en.wikipedia.org/wiki/Animal#Evolutionary_origin

I am guessing it's something about container ID? My previous attempts were me trying to work with the container styles in the CSS. Though I gave up and didn't save my failed attempt (wrong of me, I know)
Could I get help on how to replicate replicate it?

Thank you for the help in advance.


r/HTML • • 5d ago

Question Online programma

3 Upvotes

Beste,

Ik heb een aantal jaren geleden een online cursus aangeschaft. Echter gaat de datum over een aantal maanden aflopen en willen ze weer hebben dat je het volledige bedrag gaat betalen. Weet iemand of er een manier is dat je dit programma, ergens anders kan opslaan of downloaden zodat je daar verder op je gemak, alles kunt bekijken ipv het opnieuw aan te moeten schaffen?

Alvast bedankt voor het meedenken


r/HTML • • 6d ago

Question New to html, what's the most efficient way to program this?

Thumbnail
toastyweb.neocities.org
0 Upvotes

hiyaa I've been working on a website as part of a fun portfolio project and I want to have a music player, attached is a very basic version of how I'd like it to function (the middle number would be the selected song) and I KNOW I could probably achieve this exact effect with like half the javascript.

Trying and improving is how I learn most effectively, so if anyone could help me out with this that would be awesome! :\]


r/HTML • • 7d ago

Question My first website

28 Upvotes

Hi everybody,

This is my first time using html, css, and JavaScript, I am attempting to teach myself how to build my own website for a blog. I am using visual studio code, but i first had tried on neocities just because they had some great basics. I also am watching tons of freecodecamp videos and trying to do their JavaScript course. Anyways I am just wondering is jumping in and just trying to make the website the right way to go?

I am embarrassed to share it here but so far I have created 2 webpages, one as a link inside of the other (not sure what you call that), and I am pretty satisfied with my basic work so far, but I am unsure if just trying to work on the website and researching as i go will be helpful enough to build an adequate website/adequate skills.

sorry if this is worded badly i am just suddenly obsessed with doing this and have spent the last 4 days trying to learn more. I would love to know about other peoples experience building websites, and the best things to learn.


r/HTML • • 7d ago

Question Do browsers not support mkv video playback?

2 Upvotes

This works:

<video width="400" controls> <source src="test1.mp4" type="video/mp4"></video>

This doesn't work:

<video width="400" controls> <source src="test2.mkv" type="video/mkv"></video>


r/HTML • • 7d ago

Discussion Can the entire HTML element system be replicated using only <div>?

0 Upvotes

Theoretical (and useless) question:

Is it possible to reproduce the COMPLETE functionality of every HTML element using only <div>, CSS and JavaScript?

Rules:
- Only <div> elements are allowed within the <body> tag.
- All elements must exist in the initial HTML document. So no dynamic element creation (createElement, innerHTML, etc.).
- CSS, JavaScript, browser APIs and ARIA are allowed (and needed for some tags even).

The goal would be to reproduce functionality, not just appearance. This includes native interactions, keyboard behavior, accessibility, form validation, file inputs, media playback, navigation, etc.

For example:
All the heading tags like <h1>, <h2>, etc. can be replaced by a simple <p>, that can itself be replaced by a <div>.
Can all <input> be perfectly replicated using a div?
Can <img> be replaced with CSS backgrounds or Canvas without losing functionality ?
Can <iframe> be recreated while preserving its isolated browsing context thing?

Is one HTML element (<div>) theoretically sufficient to replicate the entire HTML specification?
If not, what is the absolute minimum number of distinct HTML elements required, and which elements are they ?

I’m interested in technical limitations, not semantic HTML best practices.


r/HTML • • 8d ago

help me

2 Upvotes

I'm new to HTML and just starting my journey into web development. I want to improve my skills, build a solid foundation, and eventually become comfortable creating websites on my own. I'm looking for advice from experienced developers and people who started from zero. A few questions: What is the best way to learn HTML effectively? Which resources, courses, or YouTube channels would you recommend? Should I focus on mastering HTML first before moving on to CSS and JavaScript? What beginner projects would you recommend to practice and improve? What common mistakes should I avoid when starting out? I'm willing to put in the time and practice consistently. I'd really appreciate any tips, learning roadmaps, useful resources, or personal experiences you could share. Thanks in advance! Any help is appreciated!


r/HTML • • 8d ago

Diagram UML with bootstrap

0 Upvotes

How to create a page html with Diagram UML with bootstrap. As example, the dad box, when pull open box children, the same the thing with it and a line conect theys. I'm to use in project where I to create mini projects interconect between it's


r/HTML • • 9d ago

Question is there any way to make images and/or the page load slower?

25 Upvotes

Maybe a bit of a weird request but I'm currently making a webpage in the style of early 2000s geocities pages and I think it could be a nice little detail to try and replicate the typical of the time slow page/image top to bottom loading. I dont wanna make it load painfully slow like it seemed to do on the old family computer, just so that its noticeable and kind of sets the vibe a bit.

If there's any way I could kind of limit the load time for the page in some way preferably using just HTML and CSS, any help with it would be appreciated :)


r/HTML • • 10d ago

I made an open-source page intro where a swarm of cursors rebuilds your site on load

2 Upvotes

Every time someone loads the page, it starts blank and a swarm of multiplayer-style cursors builds it back up. Each one drags a selection box with a live size label over an element, then types the text in letter by letter, like a design team working in Figma. Sections further down build as you scroll, and scrolling fast brings in more cursors.

It’s a small package with no dependencies, about 4 KB:

npm i swarm-intro

import { swarmIntro } from "swarm-intro";

swarmIntro({ logo: "SR" });

Some details I cared about:

* The text types in place without moving the layout around

* Visitors can skip it with Esc or the Skip button

* It turns itself off for people who have reduced motion enabled

* It’s black and white by default, matching your site’s colours

It’s inspired by the Swarm Rebuild Chrome extension and Joel Califa’s Swarm site. I wanted the same effect as something you can drop into your own site, so I wrote my own version.

GitHub: https://github.com/swarnadeep31/swarm-intro

npm: https://www.npmjs.com/package/swarm-intro

Feedback welcome, especially on performance with long pages.


r/HTML • • 10d ago

I Need a Custom Video Player!

3 Upvotes

I'm making a website that I need to put a video in but I can't seem to find a decent custom video player. Right now I'm using the default video player from the browser. Any recommendations?

<video controls>
<source src="/assets/video/trailer.mp4" type="video/mp4">
<source src="sample-video.webm" type="video/webm">
Your browser does not support the video tag
</video>

r/HTML • • 11d ago

are anchor links the right thing for this?

Post image
11 Upvotes

i am not great with html, but i do like making my blog look nice. i wanted to make my blog be able to have each post accessed individually (instead of scrolling through them all) but without making each new post its own html page because that sounds awful. ive been looking into how to do this, and the closest thing i can find would be to use anchor links and 'jump' to the right post, but i wouldn't want the user to be able to scroll through the posts and they would have to click on the side bar to navigate them. would i need to use javascript for something like this? if it can be avoided i would love to avoid it.

so i dunno, if anyone has any idea how to start with this it would be greatly appreciated ! :-)


r/HTML • • 11d ago

Question [JavaScript/HTML] Unboxing simulator: Dual image display issue & daily forced wins

Thumbnail
unboxingtimecraciun.neocities.org
3 Upvotes

please note that I am a beginner at this and I don't know much about coding

Hi! I'm building a Christmas unboxing web app for my boyfriend, featuring a skin-case style spinning wheel. I'm running into two main issues:

  1. Dual Images & Display: I want the wheel to show a 'mystery/boxed' version of each item (e.g., canax.png), and then reveal the actual item image (e.g., cana.png) in the win popup modal when it lands. However, when I try to implement this, the images on the wheel disappear. (Note: All my image files and the HTML file are in the same root folder, no subfolders). What am I doing wrong?
  2. Forced Daily Outcomes: I want to be able to hardcode or easily change a variable every day so the wheel always lands on a specific item (e.g., day 1 is a mug, day 2 is a hoodie, etc.), allowing me to manually update just the item for that specific day. How can I structure my code to easily configure daily forced wins?