Html codes
184 subscribers
112 photos
15 videos
226 files
198 links
πŸ‘‹ Welcome to Html Codee
πŸš€ Here you’ll find mini tools, code snippets, and web tricks to grow fast.
🧩 Built with HTML, PHP, and smart ideas.
πŸ’Œ Support: support@bestpage.x10.mx
🏁 If you don't walk today, run tomorrow.
Download Telegram
Hello!, how are you?
rainviewer-api-example.html
8.9 KB
rainviewer-api-example.html
Mark Zuckerberg’s company is siding with Elon Musk in a fight against the developer of ChatGPT.

Meta urges California Attorney General to stop OpenAI from becoming for-profit.

@aipost 🧠 | WoW ☺️
body { margin: 0; padding: 0; height: 100vh; background: #000000; overflow: hidden; } .snowflakes { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 1000; } .snowflake { position: absolute; width: 10px; height: 10px; background: white; border-radius: 50%; opacity: 0.8; } @keyframes snowflakes-fall { 0% { top: -10%; } 100% { top: 100%; } } @keyframes snowflakes-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } } .snowflake:nth-child(1) { animation: snowflakes-fall 10s linear infinite, snowflakes-shake 3s ease-in-out infinite; } .snowflake:nth-child(2) { animation: snowflakes-fall 15s linear infinite, snowflakes-shake 4s ease-in-out infinite; } .snowflake:nth-child(3) { animation: snowflakes-fall 20s linear infinite, snowflakes-shake 5s ease-in-out infinite; } /* Add more snowflakes for a denser effect */ .snowflake:nth-child(4) { animation: snowflakes-fall 12s linear infinite, snowflakes-shake 3.5s ease-in-out infinite; } .snowflake:nth-child(5) { animation: snowflakes-fall 18s linear infinite, snowflakes-shake 4.5s ease-in-out infinite; }
Which tag is used for a paragraph in HTML?
Anonymous Quiz
29%
<div>
64%
<p>
7%
<h1>
Which attribute provides a unique identifier to an element?
Anonymous Quiz
82%
id
18%
class
0%
style
Creating a photo gallery using Three.js can be a fun and engaging way to showcase images in a 3D space. Below, I'll provide a basic example of how you might set up a simple photo gallery using Three.js.

πŸ“š Prerequisites

1. Three.js: Make sure to include the Three.js library. You can use a CDN link in your HTML file.

2. Images: You should have a collection of images to display in your gallery.

πŸ“š Basic Example

Here’s a simple example of a photo gallery using Three.js:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Photo Gallery</title>
<style>
body { margin: 0; }
canvas { display: block; }
</style>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script>
// Scene setup
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

// Lighting
const ambientLight = new THREE.AmbientLight(0xffffff, 0.5);
scene.add(ambientLight);
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.5);
scene.add(directionalLight);

// Image URLs
const imageUrls = [
'https://via.placeholder.com/300.png?text=Image+1',
'https://via.placeholder.com/300.png?text=Image+2',
'https://via.placeholder.com/300.png?text=Image+3',
'https://via.placeholder.com/300.png?text=Image+4',
'https://via.placeholder.com/300.png?text=Image+5'
];

const planes = [];
const spacing = 2; // Space between images

// Create image planes
imageUrls.forEach((url, index) => {
const texture = new THREE.TextureLoader().load(url);
const geometry = new THREE.PlaneGeometry(1, 1);
const material = new THREE.MeshBasicMaterial({ map: texture });
const plane = new THREE.Mesh(geometry, material);

plane.position.set(index * spacing, 0, 0); // Arrange in a line
planes.push(plane);
scene.add(plane);
});

camera.position.z = 5;

// Animation loop
const animate = function () {
requestAnimationFrame(animate);

// Rotate the gallery
planes.forEach(plane => {
plane.rotation.y += 0.01;
});

renderer.render(scene, camera);
};

animate();

// Handle window resize
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
</script>
</body>
</html>


πŸ“š Explanation:

1. Basic Structure: The example sets up a basic Three.js scene with a perspective camera and an ambient light.

2. Image Planes: It loads images as textures and applies them to flat planes (PlaneGeometry). The images are arranged in a line.

3. Animation: The gallery rotates slowly, which can make the experience more dynamic.

4. Responsive Design: An event listener adjusts the camera and renderer when the window is resized.

πŸ“š Customization:

⦁ Image Arrangement: You can change the layout by adjusting the position values.
⦁ Interactive Features: You can add mouse events to allow users to click on images for more details or to change the rotation speed.
⦁ Styling: Customize the CSS to change the background or layout further.

πŸ“š Additional Notes:
Make sure to replace the placeholder image URLs with your images or host them somewhere accessible if testing locally. This can be a great start for creating a fun 3D photo gallery with Three.js!
🧼 Wet Wipes: Convenience vs. Environmental Impact ⚠️

β€’Wet wipes are incredibly convenient in daily life, but their environmental impact is often underestimated:

βœ… Advantages:
More durable and tear-resistant than paper tissues.
Hygienic and portable.

❌ Disadvantages:
Made with plastic fibers that don’t fully decompose.
Contribute to microplastic pollution in water bodies, harming marine life.
Improper disposal can choke and harm sea animals.

🌍 What Can We Do?
Choose biodegradable wet wipes.
Use them only when necessary.
Dispose of them properly.
Protecting the environment is in our hands! 🌱

#Ecology #WetWipes #Sustainability #Environment #SaveThePlanet
Music player with Slider

Swipe, drag the slider, or press the forward and back buttons to navigate through the slick Swiper.js-powered music app from Ecem Gokdogan, inspired by a Dribbble shot by tinboo.

Code
How do you make text bold?
Anonymous Quiz
64%
<b>
29%
<strong>
7%
Both work
What tag is used to create a hyperlink?
Anonymous Quiz
14%
<a>
50%
<link>
36%
<href>
What does the <th> tag define in a table?
Anonymous Quiz
73%
Header cell
18%
Regular cell
9%
Row cell
build-your-own-credit-card-using-html-css-and-javascript.zip
14.1 KB
Learn how to create your own credit card UI using HTML, CSS, and JavaScript with this step-by-step tutorial. No prior experience required.