A dynamic, interactive visualization of a DNA double helix structure with animated background particles, built using CreateJS. It's optimized for both desktop and mobile devices.
Try it live: HERE
- Interactive DNA Helix: Side-view animation of a DNA double helix with accurate base pairing (A-T, C-G).
- Base Pair Connections: Subtle lines connecting complementary base pairs for clarity.
- Animated Background: Dynamic particle system with varied movement and hues, enhancing the visual depth.
- Responsive Design: Adapts seamlessly to different screen sizes and orientations.
- Mobile Optimization: Touch controls for panning on mobile devices, reduced particle count, and lower framerate for performance.
- Legend: Color-coded guide for nucleobases (Adenine, Cytosine, Guanine, Thymine, Uracil).
- Title: Clear "DNA Helix Visualization" header for context.
Clone the Repository:
git clone https://github.com/[your-username]/dna-helix-visualization.git
cd dna-helix-visualizationServe the Files: Since this is a static web project, you can serve it using a simple HTTP server.
For example, with Python:
Copy
python -m http.server 8000Or with Node.js (using http-server):
npm install -g http-server
http-server
Open in Browser: Navigate to http://localhost:8000 (or the port specified by your server) in your web browser.
- Desktop: View the animation and observe the DNA helix structure with background particles.
- Mobile: Swipe left or right to pan the helix horizontally and explore different sections.
- Responsive: Resize the browser window or rotate your mobile device to see the layout adapt.
- index.html: Main HTML structure
- styles.css: Responsive styling for layout and elements
- script.js: Core JavaScript logic using CreateJS for animation and interaction
- CreateJS (loaded via CDN in index.html)
Copy
dna-helix-visualization/
├── index.html # Main HTML file
├── styles.css # Stylesheet with responsive design
├── script.js # JavaScript logic and animation
└── README.md # This file
- Contributions are welcome!
- Found a bug or have a suggestion? Please open an issue with details.
- Built with CreateJS
- Distributed under the GNU Affero General Public License v3.0 License. See
LICENSEfor more information.
